跳到正文
TakoAPI
返回技能列表

cdp-browser

由 gostlightai 提供

Browser & Automation
521下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

CDP browser control at localhost:9222.

描述

该技能的功能

CLI tool for controlling Chrome/Chromium via the Chrome DevTools Protocol (CDP) at localhost:9222. Supports tab inspection, navigation, screenshots, scrolling, JS execution, and posting to X in a persistent browser session.

Reuses an already-authenticated browser session instead of requiring login automation or stored credentials in each script.

何时使用

  • Taking a full-page screenshot of a logged-in dashboard
  • Posting a tweet from a pre-authenticated X session
  • Navigating to a URL and extracting element text
  • Scrolling a page to trigger lazy-loaded content
  • Dismissing popups blocking automated page interaction

示例工作流

输入

User asks: take a screenshot of my current Gmail tab

智能体
  1. 1

    Run status to list all open tabs and identify the Gmail tab ID

  2. 2

    Run snapshot <tabId> to capture a full-page PNG of that tab

  3. 3

    Return the screenshot file path to the user

输出

Full-page PNG screenshot of the Gmail tab saved locally

前置要求

  • Chrome or Chromium running with --remote-debugging-port=9222 (or Docker Compose with remote debugging enabled)

安装

clawhub install gostlightai/cdp-browser

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接