fetch-playwright

fetch-playwright is a skill for Claude Code from 0xmariowu/Autosearch. It costs 71 tokens per session (1,075 once invoked), scanned A, original, MIT.

A browser-automation connection using Microsoft's Playwright MCP server. It lets an AI operate a real Chromium browser by navigating, clicking, typing, waiting, scrolling, and taking screenshots.

In plain words
What is it for?
It is for interactive web research and data collection on dynamic pages, including form submission and screenshot capture. It is intended as a fallback after simpler page-fetching methods fail.
Why use it?
It handles pages that ordinary fetching cannot reach because they require JavaScript, user-like actions, login, pagination, or infinite scrolling.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the autosearch plugin — 63 skills, 1 command, 1 agent shipped together

Good fit It is for interactive web research and data collection on dynamic pages, including form submission and screenshot capture. It is intended as a fallback after simpler page-fetching methods fail.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xmariowu/autosearch/fetch-playwright
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 0xmariowu/Autosearch --skill fetch-playwright
Clone the repo
git clone --depth 1 https://github.com/0xmariowu/Autosearch

Made for: Claude Code.

Or install autosearch, the plugin that ships this one along with the rest of its 63 skills, 1 command, 1 agent.

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 fetch-playwright

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xmariowu/autosearch/fetch-playwright/github.svg)](https://agentmods.dev/skills/0xmariowu/autosearch/fetch-playwright)
Your own site
<a href="https://agentmods.dev/skills/0xmariowu/autosearch/fetch-playwright"><img src="https://agentmods.dev/badge/skills/0xmariowu/autosearch/fetch-playwright/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 fetch-playwright

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xmariowu/autosearch/fetch-playwright"><img src="https://agentmods.dev/badge/skills/0xmariowu/autosearch/fetch-playwright.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,075 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.
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.00071 $0.01075
Opus 5.5 $0.00028 $0.00430
Sonnet 5.5 $0.00014 $0.00215
Haiku 4.5 $0.00007 $0.00108

Measured 6d ago against content hash 59daa37b72be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fetch-playwright 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 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (__init__.py), 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.

autosearch/skills/tools/fetch-playwright/SKILL.md · 89 lines

How it starts

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

Drive a real Chromium browser from the runtime AI via Microsoft's official @playwright/mcp server. Use this when fetch-jina (cheapest) and fetch-crawl4ai (depth + basic JS) still cannot reach the content — typically because the page requires clicking, typing, scrolling, waiting for an event, or capturing a screenshot.

Architecture (why there is no Python file in this skill)

This skill is documentation-only. The runtime AI calls playwright-mcp tools directly through its MCP client — autosearch does not wrap them. The skill exists so the runtime AI knows:

  1. When to reach for Playwright (vs. fetch-jina / fetch-crawl4ai).
  2. How to install @playwright/mcp.
  3. Which MCP tools to call for common web-research patterns.

Install

Register with your MCP client. For Claude Code, prefer claude mcp add (writes to ~/.claude.json); for project-scoped config use <project>/.mcp.json. Cursor reads ~/.cursor/mcp.json; Zed reads <project>/.zed/mcp.json. Schema for any of them:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

On first run, npx will download @playwright/mcp and Playwright will install a Chromium bundle. No API keys. Works offline for local pages.

Common Tool Calls (as used by the runtime AI)

Tool names below come from @playwright/mcp. Exact schemas are served by the MCP server itself; the runtime AI enumerates them via the MCP client.

  • browser_navigate(url) — go to a URL.
  • browser_snapshot() — accessibility tree of the current page (cheap text form, no screenshot).
  • browser_click(ref) / browser_type(ref, text) / browser_press_key(key) — interact with elements from the snapshot.
  • browser_wait_for(text | time | element) — wait for an event or selector.
  • browser_take_screenshot() — capture the current page as an image.
  • browser_evaluate(script) — run custom JS (use sparingly).
  • browser_network_requests() / browser_console_messages() — inspection.
  • browser_tabs(...) — open, list, select, close tabs.
  • browser_close() — release the browser.

Read the full file on GitHub · 89 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 89 lines · 71 tokens per session scan A 59daa37b72be

Subscribe to this mod's changes

fetch-playwright is a skill published in the GitHub repository 0xmariowu/Autosearch (50 stars, last pushed 7d ago), licensed MIT. It adds 71 tokens to every session and 1,075 once invoked, about $0.0003 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-10-11.

Related

Other skills, from other repositories

find-my-bookings-and-balances

Uses your own email and browser connectors together to find booking confirmations and points balances, then saves them to Award Travel Finder. Use when the user asks to find, sync or set up all their trips and balances and an email connector (Gmail, Outlook, Apple Mail) or browser control (Claude in Chrome, computer…

AwardTravelFinder/mcp · 97 tokens

scrape-strategy

Guide mode selection when site scraping is weak, blocked, or low quality. Use when the user asks why scraping failed or how Primr should proceed on a protected site.

blisspixel/primr · 39 tokens

captchasonic-solve

Solve a CAPTCHA using the CaptchaSonic MCP server. Supports all types — PopularCaptcha, reCAPTCHA, Geetest, OCR, AWS WAF, TikTok, Binance, Cloudflare Turnstile, and more. Provide an image (path, URL, or base64) and captcha type.

Captcha-Sonic/Agent-skills · 68 tokens

captchasonic

Solve CAPTCHAs using the CaptchaSonic AI API. Supports reCAPTCHA, Cloudflare Turnstile, Geetest, AWS WAF, TikTok, Binance, OCR, and more. Provides MCP server tools for health checks, balance queries, and captcha solving from any AI agent.

Captcha-Sonic/Agent-skills · 65 tokens

captchasonic-setup

Set up the CaptchaSonic MCP server for the first time. Installs the server, configures environment variables, and verifies connectivity. Use when a user wants to start using CaptchaSonic with their AI agent.

Captcha-Sonic/Agent-skills · 51 tokens

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

valarpirai/code-graph · 52 tokens