session_dialog
Answers blocking JavaScript alert, confirm, prompt, or beforeunload dialogs on a session page so other session tools can resume; choose accept or dismiss and enter prompt text when needed.
Instructions
Answer the JavaScript dialog (alert, confirm, prompt, beforeunload) open on the session's page.
Dialogs are left open, as in a normal browser: while one is open the page is blocked and the other session_* tools fail with 409 "a JavaScript is open on the page ()". Call this to answer it, then retry. A beforeunload that your own session_goto (or click) causes is accepted automatically and never shows up here.
Args: name: identity name, exactly as profiles_list reports it. action: "accept" (OK / Leave) or "dismiss" (Cancel / Stay). prompt_text: for a prompt() dialog, the text to enter before accepting; omit it to accept the prompt's default value.
Returns {ok, action, type, message} for the dialog that was answered. Fails with a readable message if no dialog is open (409), the session is not open (409 — call profile_start first) or the identity does not exist (404).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| action | Yes | ||
| prompt_text | No |