Press keys in element
element_press_keysPresses a specified key chord on a keyboard-focused element to trigger element-specific shortcuts or actions during desktop automation.
Instructions
Press a key chord in an element once it holds keyboard focus.
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>",
"keys": "<keys>"
},
"name": "element_press_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref from ax_tree/ax_find, e.g. "e12". | |
| keys | Yes | Key chord, e.g. "ctrl+s", "enter", "ctrl+shift+p", or ["ctrl","s"]. | |
| takeover | No | Omit (default): background first; the server decides any takeover. true: activate the window and post real input now. false: background only, never take over. |