key
Send Enter, Tab, Escape, arrow, Backspace/Delete, or modifier presses to the focused element or a specified ref, with repeat and sequence support for browser automation.
Instructions
Press a key: Escape, Enter, Tab, arrows (custom dropdowns), Backspace/Delete, or a combo. Without ref it goes to whatever is focused. For entering text use type.
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": {
"key": "<key>"
},
"name": "key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | KeyboardEvent key ("Escape", "Enter", "Tab", "ArrowDown"), or with modifiers ("ctrl+a", "shift+Tab"). Pass an array to send a sequence in one call: ["Tab","Tab","Enter"]. | |
| ref | No | Optional: focus this element first. Omit to send to the focused element. | |
| real | No | Request a browser-level event explicitly. An uncertain or no-effect action is never automatically replayed. | |
| tabId | No | Target tab id. Omit to use the active controlled tab. | |
| repeat | No | Press N times (e.g. ArrowDown ×3). Max 50. | |
| spaceId | No | Pin this command to an owned BeatBrowser TaskSpace. Also pass its tabId. | |
| snapshotId | No | snapshotId the ref came from |