get_last_dialog
Retrieves the most recent native browser dialog (alert, confirm, prompt) that was automatically dismissed, including its type, message, and URL. Use to verify dialog content after browser automation.
Instructions
get_last_dialog() → {dialog} — 取最近一次被扩展自动处置的原生对话框,读后清。 attach 后扩展 Page.enable + 拦 Page.javascriptDialogOpening 立即处置(beforeunload 放行、alert/confirm/prompt 取消),防原生对话框冻结页面 JS 线程导致 evaluate 系 helper 挂死。dialog = {kind, message, url, defaultPrompt} 或 None(期间无对话框)。 仅事后观测,不能代答:需 confirm()===true 或特定 prompt 字符串的流程会被无条件取消。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||