desktop_focus
Sets keyboard focus to a referenced macOS UI element before key presses, so keystrokes target the intended document area or control.
Instructions
Give a ref keyboard focus (e.g. a document area before pressing keys).
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_focus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| headed | No | ||
| ref_id | Yes | ||
| timeout_ms | No |