Answer dialogs
browser_dialogControl alert, confirm, and prompt dialog responses on a browser tab before an action opens them. Accept or dismiss, and persist the choice.
Instructions
Decide how alert/confirm/prompt dialogs are answered on a tab you are driving. By default they are dismissed (a confirm returns false) and reported in the action result. Call this BEFORE the action that opens the dialog: accept for the next dialog, persist to keep answering that way.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | What to type into a prompt. | |
| tabId | No | ||
| accept | Yes | ||
| persist | No |