page.press
Presses a key or keyboard chord on the active page or a targeted element to trigger browser actions, submit forms, or navigate interfaces.
Instructions
Press a key or chord, e.g. "Enter", "Escape", "Control+Shift+K".
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": "page.press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| nth | No | Zero-based index when the locator matches several elements. | |
| ref | No | Snapshot ref (eNN) from page.snapshot. | |
| text | No | Visible text of the element. | |
| xpath | No | XPath expression. | |
| frame_id | No | Frame to search within; see page.list_frames. | |
| selector | No | CSS selector; pierces shadow DOM. | |
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| backend_node_id | No | CDP backendNodeId, e.g. from inspector.pick. |