browser_press_key
Press a keyboard key (e.g., 'Enter', 'Tab', 'Escape', 'ArrowDown') or a single character. Shortcuts with modifiers are written with '+': 'Control+A', 'Shift+Tab', 'Control+Shift+ArrowLeft', 'Meta+Enter'. Optional ref focuses an element first — aria-ref token from browser.snapshot ('e7') or a CSS selector (frame = CSS selector of the it lives in).
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": {
"page_id": "<page_id>",
"key": "<key>"
},
"name": "browser_press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| ref | No | ||
| frame | No | ||
| page_id | Yes | ||
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |