Press Key
gv_press_keyPress a key or key chord (e.g., Enter, Tab, Escape) on the active page to submit forms, navigate fields, or trigger shortcuts.
Instructions
Press a single key or key chord on the active page.
Use this for things gv_fill_input can't do — submitting a form with
Enter, tabbing between fields, dismissing a modal with Escape, selecting
all with Ctrl+A, etc.
Args:
key: Playwright key name — "Enter", "Tab", "Escape", "ArrowDown",
"Backspace", "a", "1", etc.
modifiers: Optional modifier keys to hold — ["Control"], ["Shift"],
["Control", "Shift"]. Combined as modifier+...+key.
hold_ms: Hold the key down for this many ms before releasing (for
long-press scenarios). 0 = tap.
delay_after_ms: Pause for a randomized ~this many ms after.
Returns the pressed chord.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| hold_ms | No | ||
| modifiers | No | ||
| delay_after_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |