browser-tools

browser-tools is a skill for Claude Code, Codex from badlogic/pi-skills. It costs 37 tokens per session (1,207 once invoked), scanned A, original, MIT.

A tool for controlling a visible Chrome browser through developer connections.

In plain words
What is it for?
Opening web pages, running JavaScript in the current page, extracting information, counting or selecting page elements, and taking screenshots.
Why use it?
It lets an agent inspect and interact with web pages when ordinary command-line requests are not enough.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

not rated 2.7krepo +9 5mo ago A scan Socket: warnSnyk: warnSkillSpector: pass 37 tokens original MIT

Good fit Opening web pages, running JavaScript in the current page, extracting information, counting or selecting page elements, and taking screenshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/badlogic/pi-skills/browser-tools
About the project

badlogic/pi-skills is a collection of reusable skills that extend pi-coding-agent and work with several other coding agents. Developers use it to give agents capabilities such as web search, browser automation, Google service access, transcription, VS Code integration, and YouTube transcript retrieval.

badlogic/pi-skills · 2,655 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add badlogic/pi-skills --skill browser-tools
Clone the repo
git clone --depth 1 https://github.com/badlogic/pi-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for browser-tools

README.md
[![agentmods](https://agentmods.dev/badge/skills/badlogic/pi-skills/browser-tools/github.svg)](https://agentmods.dev/skills/badlogic/pi-skills/browser-tools)
Your own site
<a href="https://agentmods.dev/skills/badlogic/pi-skills/browser-tools"><img src="https://agentmods.dev/badge/skills/badlogic/pi-skills/browser-tools/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for browser-tools

Your own site · 80×15
<a href="https://agentmods.dev/skills/badlogic/pi-skills/browser-tools"><img src="https://agentmods.dev/badge/skills/badlogic/pi-skills/browser-tools.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,207 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 16 Sept 2026
  • Snyk warn 16 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01207
Opus 5.5 $0.00015 $0.00483
Sonnet 5.5 $0.00007 $0.00241
Haiku 4.5 $0.00004 $0.00121

Measured 2mo ago against content hash abb6f33fc505, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

browser-tools scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 8 executable files (browser-content.js, browser-cookies.js, browser-eval.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

browser-tools/SKILL.md · 197 lines

How it starts

The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Browser Tools

Chrome DevTools Protocol tools for agent-assisted web automation. These tools connect to Chrome running on :9222 with remote debugging enabled.

Setup

Run once before first use:

cd {baseDir}/browser-tools
npm install

Start Chrome

{baseDir}/browser-start.js              # Fresh profile
{baseDir}/browser-start.js --profile    # Copy user's profile (cookies, logins)

Launch Chrome with remote debugging on :9222. Use --profile to preserve user's authentication state.

{baseDir}/browser-nav.js https://example.com
{baseDir}/browser-nav.js https://example.com --new

Navigate to URLs. Use --new flag to open in a new tab instead of reusing current tab.

Evaluate JavaScript

{baseDir}/browser-eval.js 'document.title'
{baseDir}/browser-eval.js 'document.querySelectorAll("a").length'

Execute JavaScript in the active tab. Code runs in async context. Use this to extract data, inspect page state, or perform DOM operations programmatically.

Screenshot

{baseDir}/browser-screenshot.js

Capture current viewport and return temporary file path. Use this to visually inspect page state or verify UI changes.

Pick Elements

{baseDir}/browser-pick.js "Click the submit button"

IMPORTANT: Use this tool when the user wants to select specific DOM elements on the page. This launches an interactive picker that lets the user click elements to select them. The user can select multiple elements (Cmd/Ctrl+Click) and press Enter when done. The tool returns CSS selectors for the selected elements.

Common use cases:

  • User says "I want to click that button" → Use this tool to let them select it
  • User says "extract data from these items" → Use this tool to let them select the elements
  • When you need specific selectors but the page structure is complex or ambiguous

Cookies

{baseDir}/browser-cookies.js

Display all cookies for the current tab including domain, path, httpOnly, and secure flags. Use this to debug authentication issues or inspect session state.

Read the full file on GitHub · 197 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 197 lines · 37 tokens per session scan A abb6f33fc505

Subscribe to this mod's changes

browser-tools is a skill published in the GitHub repository badlogic/pi-skills (2,655 stars, last pushed 5mo ago), licensed MIT. It adds 37 tokens to every session and 1,207 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

browser-tools compared with skills from other repositories

browser-tools next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
browser-toolsbadlogic/pi-skillsSkill2.7k5mo agoMITA37Claude Code, Codex
interactive-loginyc-software/qmSkill16ktodayMITA46Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k10d agoMITA52Claude Code, Codex
azure-messaging-webpubsub-javamicrosoft/skillsSkill3.2kyesterdayMITA43Claude Code
cua-driverdavidondrej/skillsSkill4.3k3d agoMITA68Claude Code, Codex
open-design-browsercompozy/compozySkill2.8ktodayMITA56Claude Code, Codex
southwestborski/travel-hacking-toolkitSkill895todayMITA40Claude Code