Handle dialog
browser_dialogAccept or dismiss browser dialogs like alerts, confirms, prompts, and beforeunload to keep a tab unfrozen. Solve blocked automation by handling dialog content yourself or asking the user.
Instructions
Accepts (accept: true) or dismisses (accept: false) an open dialog (alert/confirm/prompt/beforeunload). The tab is frozen while a dialog is open. Usually judge from its content and handle it yourself (accept if it is part of the requested task; close unneeded notices/ads). Ask the user only when it confirms an irreversible action they didn't request (payment, deletion, etc.). beforeunload: accept = leave page (input lost), dismiss = stay. For prompt, text is the input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Target tab: number (1, 2…) or ID ("t7"). Use the stable ID when agents share a slot. Required for action tools when there are multiple tabs. | |
| read | No | Append the page after the action (no separate read needed): text=body text, snapshot=snapshot page 1 (with refs), changes=only lines added/removed since your last snapshot (shortest; full page if the page changed) | |
| slot | Yes | Browser slot 1-30. "3", "slot 3", "browser 3" → 3. If the user gives a port like 14052, subtract 14049. | |
| text | No | Text for a prompt dialog (used only when accepting) | |
| agent | No | Your display name, shown to other agents. Subagents must always set it. Default "claude-1e1b". | |
| accept | Yes | true = OK, false = cancel | |
| summary | No | One-line note of what you are doing (e.g. "comparing laptop prices"). Shown in browser_status (not the status line). Omit to keep the previous one. | |
| multiSlot | No | true only when one agent must handle several slots together (e.g. comparing). Normally omit (one agent = one slot; use subagents for the rest) |