Press keys
press_keySends a key or key combination to the focused element to trigger actions like Enter, Escape, or Control+A; supports repeat counts and a target tab.
Instructions
Presses a key or key combination on the focused element, e.g. "Enter", "Escape", "Control+A", "Shift+Tab", "ArrowDown".
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": {
"keys": "<keys>"
},
"name": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Key or combination joined with "+". | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). | |
| repeat | No | Press this many times (default 1). |