browser_press_key
Press a key on a ready sandbox's page, such as Enter, Tab, Escape, ArrowDown or PageDown, or a key with modifiers, such as Control+A or Shift+Tab. It answers with the page's URL and title.
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": {
"sandbox_id": "<sandbox_id>",
"key": "<key>"
},
"name": "browser_press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key, such as `Enter`, `Tab`, `Escape`, `Backspace`, `ArrowDown`, `PageDown` or `a`, with modifiers before it joined by `+`, such as `Control+A`, `Shift+Tab` or `Meta+L`. | |
| sandbox_id | Yes | The sandbox, `sbx_…`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page's URL. | |
| title | Yes | The page's title. | |
| snapshot | No | The page's accessibility tree as an indented outline, one element a line: `- role "name" [ref=N]`. A ref names the element to click, type into or scroll to. |