window
List, inspect, or interact with desktop application windows using UI Automation, with optional screenshots and tokens for follow-up actions.
Instructions
List/read windows or use semantic UIA patterns; never physically falls back.
state accepts capture_mode/allow_fallback for its independent image component; defaults remain screen/false. No focus activation; components are non-atomic. include_tokens=True adds bounded, expiring node tokens usable by later UIA actions. UIA set_value writes once, then checks that same live element for at most 600ms within the remaining call deadline; it never searches again or repeats the write.
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": "window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | ||
| rich | No | ||
| role | No | ||
| depth | No | ||
| limit | No | ||
| match | No | contains | |
| query | No | ||
| token | No | ||
| value | No | ||
| action | No | list | |
| amount | No | ||
| format | No | jpeg | |
| native | No | ||
| target | No | ||
| window | No | ||
| compact | No | ||
| details | No | ||
| max_dim | No | ||
| quality | No | ||
| timeout | No | ||
| selector | No | ||
| condition | No | ||
| direction | No | ||
| max_nodes | No | ||
| include_ax | No | ||
| text_limit | No | ||
| capture_mode | No | screen | |
| poll_interval | No | ||
| allow_fallback | No | ||
| include_tokens | No | ||
| max_output_bytes | No | ||
| max_output_chars | No | ||
| include_screenshot | No | ||
| allow_process_control | No |