TapTool

class TapTool(context: Context) : McpTool

tap — dispatch a single-tap gesture (a ~50ms stroke via tapPath) at the given screen coordinates and await completion. Use when no node matches the selector or for raw coord-based input.

Params: required x, y (screen pixels; must be non-negative, non-NaN).

On success returns success = true, x, y. Error codes: accessibility_not_enabled (service not bound), invalid_coords (non-numeric / negative / NaN), gesture_failed (dispatch cancelled or rejected).

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