handling-dialogs

star 3

Handles JavaScript dialogs through the cdp MCP server. Use when the task involves alert, confirm, prompt, or beforeunload flows that block page automation until the dialog is answered.

tmc By tmc schedule Updated 4/23/2026

name: handling-dialogs description: Handles JavaScript dialogs through the cdp MCP server. Use when the task involves alert, confirm, prompt, or beforeunload flows that block page automation until the dialog is answered.

Handling Dialogs

Use this skill when a page action opens a JavaScript dialog and the browser is waiting for accept or dismiss.

Quick start

  • Use get_dialogs to inspect the pending dialog and recent history
  • Use handle_dialog with accept and optional prompt_text
  • Re-check page state with page_snapshot, check_element, or get_page_content

Use this skill for

  • accepting or dismissing alert, confirm, prompt, and beforeunload
  • verifying dialog text before responding
  • unblocking flows that stall after a click or navigation

Read next

Install via CLI
npx skills add https://github.com/tmc/cdp --skill handling-dialogs
Repository Details
star Stars 3
call_split Forks 1
navigation Branch main
article Path SKILL.md
More from Creator