VibrateTool

class VibrateTool(context: Context) : McpTool

Triggers a one-shot vibration for duration_ms (1-10000, clamped). Optional amplitude (1-255) is only honored on API 26+; on older devices the duration vibrates at the system default. Requires VIBRATE.

Output key on success: success (true). Errors if the device has no vibrator.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val annotations: ToolAnnotations
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val parameters: List<ToolParameter>

Functions

Link copied to clipboard
open suspend override fun execute(params: Map<String, Any>): ToolResult