click_by_id
Clicks a UI element by its stable automation_id, so targets with changing labels like countdowns or spinners still resolve reliably. Runs dry by default to verify the element before any real click.
Instructions
Click an element addressed by its stable automation_id. Use this instead of click-by-name when the visible label changes (a live countdown, a spinner): the automation id is the anchor that does not move. Prefers the UIA Invoke pattern, so it needs no pixel maths, does not move the user's cursor and does not steal focus. Default dry_run=true (resolves the target, clicks nothing).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hwnd": "<hwnd>",
"automation_id": "<automation_id>"
},
"name": "click_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | Yes | ||
| budget | No | how many times this call may drive the user's pointer (0 = never, the default) | |
| method | No | auto tries Invoke first, then a window message, then a pixel click paid for from budget | auto |
| dry_run | No | ||
| control_type | No | ||
| automation_id | Yes |