Browser Cdp logo

Browser Cdp

Organization
opencrabs
browser-cdp

Native CDP browser automation reference. Headless/headed Chrome control, screenshots, JS evaluation. (/browser-cdp, browser automation, cdp, scraping)

Overview

Publisheropencrabs
Repositoryopencrabs
Skill namebrowser-cdp
Stars
981
Forks
105
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by opencrabs on GitHub. Read the source before you install it.

Installation

Install the Browser Cdp AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/opencrabs/opencrabs/tree/main/src/docs/reference/templates/skills/browser-cdp
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opencrabs/opencrabs.git /tmp/opencrabs
mkdir -p .claude/skills
cp -r /tmp/opencrabs/src/docs/reference/templates/skills/browser-cdp .claude/skills/browser-cdp
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Browser Cdp in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Browser Cdp on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Browser Cdp is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Native Browser Automation (CDP)

Built-in browser control via Chrome DevTools Protocol — no Node.js, no Playwright, pure Rust.

Tools

ToolRequiredOptionalWhat
browser_navigateurlheadlessNavigate to URL
browser_clickselector—Click element by CSS selector
browser_typetextselectorType text into input
browser_screenshot—selectorScreenshot (returns file path)
browser_evalscript—Execute JavaScript
browser_content—selector, text_onlyExtract text/HTML
browser_wait—selector, timeout_secs, delay_secsWait for element or delay
browser_find—pattern, mode, limitInventory (no pattern) or find elements

Shadow DOM

Selector resolution is shadow-DOM aware by default — nothing to enable.

PathOpen shadow rootsClosed shadow roots
browser_find modes css, text, aria, and the no-pattern inventorySearched; hits are marked [shadow]Not enumerable — el.shadowRoot is null for a closed root by spec
browser_find mode xpathNot searchedNot searched
browser_click, browser_wait, browser_screenshot, browser_act (click)ResolvedResolved (CDP pierces where JS cannot)
browser_type, browser_act (fill / select / pre-flight)ResolvedNot resolved (JS path)
browser_content with a selectorResolvedNot resolved (JS path)
browser_content with no selector, text_only: trueComposed tree — body.innerText alone stops at a shadow boundaryNot resolved (JS path)
browser_content with no selector, full HTMLLight DOM only (uncapped output; piercing it would be an output-sizing change)Light DOM only

Rules of thumb:

  • XPath cannot cross a shadow boundary. That is an XPath spec limit, not an OpenCrabs one. On a web-component page use css or text mode instead.
  • A closed root resolves but never enumerates. If you know the selector, browser_click reaches it over CDP; browser_find will never show it to you.
  • Plain lookups run first. A page with no shadow DOM pays zero extra CDP round-trips, so nothing gets slower for the common case.
  • A hand-written CSS selector for a shadow element will not work in a raw browser_eval (document.querySelector stops at the boundary) even though it works in browser_click. Take the [data-opencrabs-match="N"] selector from browser_find instead of composing your own.

Headless vs Headed

  • Headless (default): No visible window. Fast, low resources.
  • Headed: Visible Chrome window. Pass headless: false to browser_navigate.

Usage Tips

  • Compose workflows: navigate → inventory/find → click → type → screenshot
  • Inventory mode: call browser_find with NO pattern to get every visible interactive element on the page, each with a stable [data-opencrabs-match="N"] selector. Prefer this over browser_screenshot when you have just landed and do not yet know what to click — text beats pixels for deciding where to act.
  • Screenshots return file paths. Use <<IMG:path>> to send to channels.
  • JavaScript evaluation for complex DOM manipulation and SPAs.
  • No credentials stored. Navigate to login page and use click/type for auth (with user approval).
  • Requires Chrome/Chromium installed. Feature-gated: browser flag.

Chrome Launch Failures

  1. SingletonLock exists: rm -f ~/.opencrabs/chrome-profile/SingletonLock ~/.opencrabs/chrome-profile/SingletonCookie ~/.opencrabs/chrome-profile/SingletonSocket then retry.
  2. DevTools data dir conflict: pkill -f chrome then retry.
  3. Channel closed: Kill Chrome, delete lock files, retry.

Frequently asked questions

What does the Browser Cdp AI skill do?

Native CDP browser automation reference. Headless/headed Chrome control, screenshots, JS evaluation. (/browser-cdp, browser automation, cdp, scraping)

Why use Browser Cdp on TypingMind?

Because you install it once and use it with any model. Browser Cdp is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Browser Cdp in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/opencrabs/opencrabs/tree/main/src/docs/reference/templates/skills/browser-cdp. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Browser Cdp?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Browser Cdp?

As many as you like. As long as a model supports skills, you can use Browser Cdp with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Browser Cdp AI skill free?

Yes. It is published on GitHub by opencrabs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇