SetSelectionTool

class SetSelectionTool(context: Context) : McpTool

Moves the cursor or selects a range via InputConnection.setSelection. Requires the droid-mcp IME to be active with an editor focused, else imeNotActiveError. Both offsets are absolute character positions; start must be >= 0 and end must be >= start (pass equal values to position the cursor without selecting). Output on success: success (true) and the echoed start/end.

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