Accept or dismiss a page prompt
browser_handle_promptRespond to JavaScript alert, confirm, and prompt dialogs by accepting or canceling them, optionally entering prompt text, so blocked pages can continue.
Instructions
Answer the alert / confirm / prompt that a page is waiting on (BiDi browsingContext.handleUserPrompt). accept: true clicks OK, false cancels. userText supplies the answer for a prompt() dialog. Without this the page stays blocked; "no such alert" means nothing is waiting, which is a normal answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accept | Yes | true = OK, false = Cancel | |
| context | No | Tab context id (default: the active tab) | |
| userText | No | Text to enter for a prompt() dialog |