session_dialog
Inspect or change the session's dialog handling for alert/confirm/prompt, with options to list, accept (with optional prompt text), or dismiss.
Instructions
Inspect or flip the session's dialog policy for window.alert/confirm/prompt. Dialogs never block the page: each is auto-answered (default dismiss) and logged into session_console at level "dialog". action "list" reports {policy, prompt_text, dialogs}; "accept" makes subsequent confirm() true and prompt() return prompt_text (or the call's default argument); "dismiss" restores the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | "list" reports the policy and dialog history; "accept"/"dismiss" set the answer applied to subsequent window.confirm/prompt calls (alert is always logged, never blocking). | |
| session_id | Yes | Session ID | |
| prompt_text | No | With action "accept": text window.prompt returns once accepted (omitted keeps the current text). |