press
Sends keyboard shortcuts such as Enter, Escape, Control+a, or Shift+Tab to a browser tab, optionally focusing a specific element first.
Instructions
Press keys: "Enter", "Escape", "Control+a", "Shift+Tab". Optional ref to focus first.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| ref | No | Element ref from the latest snapshot, e.g. e12 or f1e5 | |
| tab | No | Tab id. Default: your own target tab (each agent session gets its own) | |
| find | No | Instead of ref: the role and name as the snapshot shows them, e.g. {role:"button", name:"Save"}; nth:2 picks the second match. Survives reloads and new sessions, so recipes use it | |
| keys | No | ||
| browser | No | chrome, edge, ... (only when several browsers are connected) | |
| snapshot | No | Default returns a diff of what changed. true = full snapshot, false = nothing |