Perform sequential page actions
perform_actionsExecute up to ten browser actions—click, type, keypress, scroll—in one document target with a validated document ID, and stop on the first error. Use for reliable multi-step page automation.
Instructions
Run up to 10 sequential page actions in one document target. An explicit batch-level documentId is revalidated before every step and after observation; steps cannot override it. Fail-fast on the first step error. Click, type, and keypress steps fail with DOCUMENT_HIDDEN on hidden documents unless that step sets allowHidden=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Optional act-then-observe requests, run after the page action in waitFor, snapshot, pageStatus order. | |
| tabId | No | Optional Chrome tab id. Defaults to the claimed session tab, then the active tab. | |
| actions | Yes | Ordered action steps. Each step is a flat object with action plus action-specific fields. | |
| documentId | No | Exact frame document id returned by list_frames. Omit to target the current top document. | |
| sessionTabId | No | Optional claimed tab session id returned by claim_tab. |