focus_element
Move keyboard focus to a page element before sending key presses, enabling reliable interaction with custom widgets.
Instructions
Move keyboard focus to an element (needed before press_key on custom widgets)
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": "focus_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | ||
| by_text | No | ||
| selector | No |