TypeTextTool

class TypeTextTool(context: Context) : McpTool

Inserts text at the cursor via InputConnection.commitText. Requires the droid-mcp IME to be active with an editor focused, else imeNotActiveError. Output on success: success (true) and the inserted length; a false return from commitText (e.g. the connection was invalidated mid-call) surfaces as an error.

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