Focus element
element_focusSets keyboard focus on a specified UI element so you can type or press keys in the correct control; on non-macOS systems it may also bring that element’s window forward.
Instructions
Give an element keyboard focus. Off macOS this can bring its window forward.
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": "<ref>"
},
"name": "element_focus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref from ax_tree/ax_find, e.g. "e12". |