GetActiveWindowInfoTool

get_active_window_info — return the foreground package plus the active window's root-node class (typically the foreground activity's view-root class). Cheap and read-only; safe to poll.

No params.

On success returns package_name (String?), root_class (String?), and window_id (Int). Returns the long-form notConnectedError message when the service is not bound.

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