chrome_press_key
Simulate trusted keyboard input in a Chrome tab by pressing keys or chords such as Enter, Tab, or Control+A, optionally focusing an element first.
Instructions
Press a key or chord (e.g. "Enter", "Tab", "Escape", "Control+a") as a trusted key event in the tab.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| ref | No | Optional element to focus first | |
| tabId | No | Chrome tab id (default: active tab) | |
| frameId | No | Frame id, default 0 | |
| snapshotId | No | snapshotId returned by chrome_snapshot; rejects stale actions |