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.
npx agentmods add skills/sderosiaux/chrome-agent/scrape-structured-datanpx skills add sderosiaux/chrome-agent --skill scrape-structured-datagit clone --depth 1 https://github.com/sderosiaux/chrome-agentWrote 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.
[](https://agentmods.dev/skills/sderosiaux/chrome-agent/scrape-structured-data)<a href="https://agentmods.dev/skills/sderosiaux/chrome-agent/scrape-structured-data"><img src="https://agentmods.dev/badge/skills/sderosiaux/chrome-agent/scrape-structured-data.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00111 | $0.01147 |
| Opus 5 | $0.00056 | $0.00574 |
| Sonnet 5 | $0.00022 | $0.00229 |
| Haiku 4.5 | $0.00011 | $0.00115 |
Grade A, and why
scrape-structured-data 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scrape structured data from a page
chrome-agent extract finds the repeating record pattern on a page and returns it as JSON. No
selectors to write, no HTML read into the model to find them.
which chrome-agent || npm install -g chrome-agent
chrome-agent goto https://news.ycombinator.com
chrome-agent --json extract --limit 50
{"count":30,"pattern":"TR","items":[
{"title":"PGSimCity - How PostgreSQL Works","url":"https://nikolays.github.io/PGSimCity/","fields":["..."]},
...
]}
Check count against what the page shows. Wildly off means the page has more than one repeating
pattern — scope it with --selector.
Why extract rather than read the page
Measured on the Hacker News front page. All three contain the same 30 stories; only the first hands them over as records.
| approach | tokens | what you get |
|---|---|---|
extract --limit 30 |
~1,570 | all 30 stories as records with URLs |
inspect (accessibility tree) |
~5,650 | the tree, stories mixed into the page chrome |
| raw HTML | ~8,730 | everything, including markup you'll never read |
3.6x against the tree, 5.6x against raw HTML here. The margin narrows on pages that are nothing but a list: on a blog archive, ~12,500 tokens against ~16,100 for the tree. The win comes from pages where the records sit inside a lot of other markup.
Scoping, lazy loading, infinite scroll
chrome-agent extract --selector ".product-grid" # restrict to one container
chrome-agent extract --limit 100 # default is 10
chrome-agent extract --scroll # scrolls, waits for new nodes, then extracts
chrome-agent extract --a11y --scroll --limit 50 # React/SPA feeds where the DOM is noise
--a11y reads the accessibility tree instead of the DOM. Use it when a site renders into nested
generated <div>s (X.com, most React apps) and plain extract returns junk.
When extract returns nothing
A page with no repeating pattern gives an empty list and a hint — the correct answer for an article or a landing page. Fall back in this order:
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.
- today Changed · -24 lines 778fef5f7259
- 5d ago First seen · 127 lines · 111 tokens per session scan A 5c3a5c678657
scrape-structured-data is a skill published in the GitHub repository sderosiaux/chrome-agent (86 stars, last pushed 5d ago), licensed MIT. It adds 111 tokens to every session and 1,147 once invoked, about $0.0006 per session on Opus 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.
Other skills, from other repositories
owb
Open Web Bridge (OWB) — drive the user's own real browser with the owb command. Read pages behind their existing logins, gather and cross-check information, fill forms, walk multi-step flows, debug their site, audit responsive/accessibility behavior, and capture or reverse-engineer network traffic. Use this whenever…
nekoro-browser
浏览器自动化——打开网页、搜索、点击、截图、执行 JS、填表、上传文件、处理对话框。通过 Chrome 扩展的 chrome.debugger API 操控用户日常浏览器,保留登录态,不开调试端口。触发词:"浏览器"、"打开网页"、"搜索"、"截图"、"点击"、"填表"、"上传文件"、"自动化操作"。.
map
Per-site navigation memory for tandem's shared browser. Profiles that describe a site's skeleton (routes), its durable locators, navigation recipes, and gotchas, so you navigate KNOWING instead of re-deriving the DOM each time. Use it when you start operating a site (check whether a profile already exists), when you…
codex-control-chrome-mcp
Use Codex Control Chrome MCP to control the user's normal Chrome profile through the Codex Chrome extension. Use when a task needs existing Chrome tabs, cookies, logged-in sessions, installed extensions, CDP commands, page inspection, navigation, screenshots, network/console events, or browser automation from an MCP…
tandem
How to operate the Chrome browser shared with the human (the tandem MCP's browser tools). Use it whenever you need to navigate, read/analyze pages, get past blocks that require human interaction (captchas, anti-bot checkpoints, logins), or inspect the network/DOM in real time alongside the human.
control-chrome-bridge
Drive the user's real Chrome browser — their own profile, tabs, cookies and logged-in sessions — through the chrome-bridge MCP server. Use for tasks that need existing browser state: reading a page behind a login, filling a form on a site the user is signed into, testing a local app in a real browser, or inspecting…