Get the focused element
get_focused_ui_elementIdentifies the UI element currently receiving keystrokes in any app, such as a text field or list, and returns null when no element has focus.
Instructions
Get the element keystrokes go to now (a text field, a list), in whichever app. Null when there's none.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_focused_ui_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element | Yes | The element. Null when there's none. |