/browserclaw:browserclawfrom browserclaw
Uses the browserclaw Node.js library to read and interact with websites requiring a browser, including forms and JavaScript-rendered pages. Provides methods for launching a browser, taking snapshots, and interacting with elements via refs.
Ships in browserclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
browserclaw is a Node.js library (Node.js 22+, a Chromium-based browser). Its guide ships inside the package, so it always matches the installed version.
node_modules/browserclaw is missing, run npm install browserclaw in the project that will run the code.npx browserclaw skill and read all of it before writing browser code.[browserclaw:skill] end of guide v<version> (<n> lines). If that line is missing or your tool shortened the output, run npx browserclaw skill --path and read that file.npx browserclaw says could not determine executable to run, the installed browserclaw predates the guide command: read node_modules/browserclaw/.claude/skills/browserclaw/SKILL.md, which is that version's full guide. Do not upgrade an existing browserclaw dependency unless the user asks; 0.21 changes refs, return types and option checking.npx browserclaw help page.click. npx browserclaw help lists every method.This example adds a to-do and checks that it appeared. Save it as todo.mjs and run node todo.mjs.
import { BrowserClaw } from 'browserclaw';
const browser = await BrowserClaw.launch({ url: 'https://demo.playwright.dev/todomvc' });
try {
const page = await browser.currentPage();
await page.waitFor({ selector: '.new-todo' });
const { refs } = await page.snapshot({ interactive: true, compact: true });
const input = Object.entries(refs).find(
([, element]) => element.role === 'textbox' && element.name === 'What needs to be done?',
);
if (!input) throw new Error('Could not find the new to-do textbox');
const list = await page.locator('.todo-list');
const milkItems = list.getByText('Buy milk', { exact: true });
const before = await milkItems.count();
const [ref] = input;
await page.type(ref, 'Buy milk', { submit: true });
// The next matching item exists only if the list gained another “Buy milk”.
await milkItems.nth(before).waitFor({ state: 'visible', timeout: 5000 });
console.log('Verified: added one Buy milk item');
} finally {
await browser.stop();
}
skill command throw UnknownOptionError on an unknown option, showing the expected call.launch({ url }) opens the first tab; browser.currentPage() returns it. browser.open(url) adds a tab.StaleRefError: re-snapshot.browser.stop() in finally.launch({ ssrfPolicy: { allowedHostnames: ['localhost'] } }) (list the exact host you navigate to, for example 127.0.0.1). Use dangerouslyAllowPrivateNetwork: true only when the user asks for the whole private network.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub idan-rubin/browserclaw --plugin browserclawOther plugins' skills for the same job