Press a key
browser_keySimulate key presses like Enter or Escape on a control to trigger keyboard shortcuts in shared Firefox tabs.
Instructions
Dispatch a synthetic keyboard event (keydown/keyup) on a control. Default browser behaviour is not guaranteed. Same credential restrictions as browser_fill.
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": {
"context_id": "<context_id>",
"observation_id": "<observation_id>",
"ref": "<ref>",
"key": "<key>"
},
"name": "browser_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name such as Enter, Escape, ArrowDown or a single character. | |
| ref | Yes | Short ref such as e3 from that snapshot. | |
| context_id | Yes | Context id from browser_contexts, for example tab:12. | |
| request_id | No | Stable id for this logical action. Reuse the SAME id to retry or reconcile it; never reuse it for a different action. Omit to have one generated and returned. | |
| observation_id | Yes | observation_id from the browser_snapshot that produced ref. | |
| browser_instance_id | No | Only needed when several Firefox profiles are connected. |