press_key
Sends a keyboard key to the active browser page, including Enter, Escape, or Control+a, and reports triggered navigation, new tabs, downloads, or dialogs.
Instructions
Press a keyboard key (e.g. 'Enter', 'Escape', 'Control+a') on the page.
No key is treated as special: Enter, Space and anything else all send
whatever the page decides to send, and that is judged when it happens.
Set submits=true if you are deliberately sending a form. A key that
makes the page navigate where no approval reaches is answered
blocked_by_policy and the tab has not moved (see click); one that
opens a tab answers new_tab: true and tab_count.
Set download=true if the key is meant to save a file: that asks for
permission to write one, and the reply carries download once it is
saved. A key that starts a download without it is cancelled and answered
download_blocked; repeat it with download=true.
A native dialog the page raised is answered at once and listed under
dialogs in the reply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| reason | No | ||
| confirm | No | ||
| submits | No | ||
| download | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||