Focus an element
focus_ui_elementBrings the element's app to the front and gives it keyboard focus so type_text and press_keys target it.
Instructions
Bring an element's app to the front and give it the keyboard focus, for type_text or press_keys to go to it.
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": {
"id": "<id>"
},
"name": "focus_ui_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The element's id, from get_ui_elements, find_ui_elements or another tool of these that returned it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |