IsImeActiveTool

class IsImeActiveTool(context: Context) : McpTool

Reports whether the droid-mcp IME is currently bound with an editor focused, via InputMethodServiceHolder.isActive. Always succeeds — no special-access gating, since this tool exists precisely to let the LLM check before calling the gated IME tools. Output: active (bound + has an input connection) and bound (service instance exists, regardless of connection state).

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