一键导入
handling-dialogs
// 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.
// 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.
Writes and explains txtar-based cdp automation scripts, including txtar header comments, main.cdp, helper JavaScript files, sourced helper scripts, assertions, and artifact output. Use when the task involves authoring, debugging, or reviewing cdp run scripts.
Captures network activity with HAR, HARL, and cdp tagging workflows, including streaming capture, annotations, and WebRTC or gRPC-Web related recorder output. Use when the task involves recording, filtering, or explaining network traffic capture in this repository.
Captures screenshots, PDFs, and visual artifacts from pages driven by cdp scripts or the interactive CLI. Use when the task involves screenshot workflows, device emulation captures, PDF export, or embedding visual artifacts into recorded sessions.
Operates the cdp CLI for browser navigation, element interaction, JavaScript evaluation, browser attachment, and interactive REPL workflows. Use when the task involves driving Chrome or Chromium with the repo's cdp command, exploring available commands, or choosing between interactive and scripted execution.
Applies device and network emulation through the cdp MCP server. Use when the task involves viewport changes, mobile presets, throttling, offline mode, geolocation, or request header overrides.
Captures and compares DOM snapshots through the cdp MCP server. Use when the task involves proving what changed after an interaction, navigation, or script execution.
| 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. |
Use this skill when a page action opens a JavaScript dialog and the browser is waiting for accept or dismiss.
get_dialogs to inspect the pending dialog and recent historyhandle_dialog with accept and optional prompt_textpage_snapshot, check_element, or get_page_contentalert, confirm, prompt, and beforeunload