resolve_leave_dialog
Resolve beforeunload leave dialogs by accepting the protocol prompt, or fall back to Enter after approval if protocol handling fails.
Instructions
Resolve an intended beforeunload leave in one bounded workflow: protocol accept twice, return immediately when no dialog exists, then use a lab-only foreground Enter fallback after the normal physical-input approval gate only when protocol handling actually fails. Approval failures expose reason in the result and diagnostics: elicitation_unsupported, declined, timeout, cancelled or error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||