get_active_window
Retrieves details about the currently focused window, returning its title, handle, position, and size. Helps agents identify the active GUI element before automating actions.
Instructions
Return information about the currently focused (active) window.
Returns: str: JSON with the active window's title, handle, position and size, or {"ok": true, "window": null} if none is active.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_active_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |