handle_dialog
Configure handling of JavaScript dialogs (alert, confirm, prompt) before they appear. Choose to accept or dismiss, optionally provide text for prompts.
Instructions
Set up handling for JavaScript dialogs (alert, confirm, prompt) on a session. Must be called BEFORE the action that triggers the dialog.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Accept or dismiss the dialog | |
| session_id | Yes | Session ID | |
| prompt_text | No | Text to enter for prompt() dialogs (optional) |