browser_set_dialog_policy
Configure automatic responses for JavaScript dialogs (alert, confirm, prompt, beforeunload) to prevent blocking. Set accept, promptText, or suppress for the current page.
Instructions
Set how native JS dialogs are auto-answered so they never block the agent. accept=true confirms (default), promptText sets what prompt() returns, suppress=true neutralizes 'Leave page?' beforeunload guards. Applies to the current page; re-set after navigation if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accept | No | Answer confirm()/prompt() affirmatively (default true). | |
| suppress | No | Neutralize beforeunload 'leave page?' guards (default true). | |
| promptText | No | Value returned from prompt() when accepted. |