pilot_dialog
Retrieve captured browser dialog messages (alert, confirm, prompt) from a buffer. Use to inspect dialog text or verify dialog appearance after an action.
Instructions
Retrieve captured browser dialog messages (alert, confirm, prompt) from a circular buffer. Use when the user wants to see what native dialogs appeared on the page, check prompt text, or verify that a dialog was triggered after an action. Note: configure auto-handling with pilot_handle_dialog to prevent dialogs from blocking page interaction.
Parameters:
clear: Set to true to clear the buffer after reading
Returns: Timestamped list of dialogs showing type (alert/confirm/prompt), message text, and the action taken (accepted/dismissed) with any response text. Or "(no dialogs captured)" if empty.
Errors: None — returns empty message if no dialogs were captured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Clear the buffer after reading |