Автоматизация Chrome через CDP с сохранением сессий

★ 7.0 · automation

browser-cdp is a Claude Code skill that controls a Chrome browser via CDP (Chrome DevTools Protocol) to reuse existing login sessions and automate browser interactions. It requires `agent-browser` (`npm install -g agent-browser`) and runs on macOS, Linux, and Windows. Core operations include launching Chrome in debug mode, navigating to URLs, waiting for page load, evaluating JavaScript (with base64 and heredoc options for complex scripts), capturing interactive-element snapshots, clicking and typing, and extracting auth tokens from localStorage or cookies. Before any setup, the skill runs a side-effect-free `--detect-only` probe and, if an active Chrome process is found, asks the user for explicit consent via AskUserQuestion before proceeding — preventing accidental loss of unsaved tabs or drafts.