Press Key
press_keySend a key press to a chosen element or the focused element in Arc. Handles named keys (Enter, Escape, Tab, ArrowDown) and printable characters, returning minimal element identity.
Instructions
Dispatch a key press to an element, or to the focused element when no selector is given. Handles named keys (Enter, Escape, Tab, ArrowDown) and single printable characters. Returns only a minimal identity for the element that received the key (tag plus whichever of id, name, type and aria-label exist); use query_elements when you need the full picture.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name, for example Enter, Escape, Tab, ArrowDown, or a single printable character | |
| exact | No | For "text=" selectors, require the whole trimmed text to equal the label instead of containing it. No effect on CSS selectors. | |
| tab_id | No | Arc tab id from list_tabs. Omit to use this agent's current tab, falling back to whatever tab is active in Arc. | |
| selector | No | CSS selector, or "text=Some label" to match on visible text (substring, exact matches ranked first) |