pilot_handle_dialog
Configure automatic handling of browser dialogs to prevent automation pauses. Accept or dismiss alerts, confirms, and prompts, with optional default text for prompts.
Instructions
Configure automatic handling of native browser dialogs (alert, confirm, prompt) that would otherwise block page interaction. Use when the user wants to pre-configure dialog behavior so alerts/confirms do not pause automation, or provide a default text for prompt dialogs. Dialog messages are still captured in the dialog buffer (see pilot_dialog).
Parameters:
accept: true to automatically accept all dialogs, false to automatically dismiss them
prompt_text: Text to automatically enter for prompt-type dialogs (omit for empty string)
Returns: Confirmation of the configured dialog behavior.
Errors: None — this is a configuration-only call that always succeeds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accept | Yes | true to auto-accept, false to auto-dismiss | |
| prompt_text | No | Text to provide for prompt dialogs |