click_element
Clicks or invokes a Windows UI element by cached ID, name, or automation ID, using background UI Automation first and guarded SendInput fallback to avoid cursor or focus hijacks.
Instructions
Click/invoke a UI element by cached element_id (from inspect_ui), name, or automation_id.
Uses background UI Automation patterns first (zero cursor/focus hijack) with guarded SendInput fallback.
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": "click_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | ||
| name | No | ||
| element_id | No | ||
| control_type | No | ||
| automation_id | No | ||
| restore_cursor | No | ||
| title_contains | No | ||
| fallback_to_sendinput | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |