desktop_click
Clicks or presses a referenced UI element in macOS apps, including closed menu items, and returns an accessibility-tree diff so agents can verify the result before dependent actions.
Instructions
Click (press) a ref. Menu items run even in closed menus. Each action returns a diff of the window ((no change) = its accessibility tree did not change); take refs from the newest header — a control whose label changed (AC → C) can need its new ref. Wait for one click's result before the next dependent click.
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": {
"ref_id": "<ref_id>"
},
"name": "desktop_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| headed | No | ||
| ref_id | Yes | ||
| timeout_ms | No |