Handle Dialog
handle_dialogAccept or dismiss blocking JavaScript dialogs (alert, confirm, prompt, beforeunload) in Arc tabs to resume page execution. Enter prompt text when accepting.
Instructions
Accept or dismiss the JavaScript dialog (alert, confirm, prompt, beforeunload) that is blocking a tab. While one is open the page cannot run anything, so other CDP tools say so and point here. For a prompt, prompt_text is what gets entered when accepting. Needs the DevTools engine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | accept presses OK, dismiss presses Cancel | |
| tab_id | No | Arc tab id from list_tabs. Omit to use this agent's current tab. A tool that changes a tab will not fall back to the tab the user is looking at, so pass this or call open_url first. | |
| prompt_text | No | Text to enter into a prompt() dialog when accepting |