capture

A command for taking a screenshot of any URL, including pages that require authentication. It can capture the full page or wait for specified page conditions.

In plain words
What is it for?
Use it to capture authenticated web pages, full-page views, pages after a delay, or pages after a chosen element appears.
Why use it?
It avoids manually opening a browser, signing in, and arranging a page before taking a screenshot.

Command

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.

agentmods
npx agentmods add commands/fastslack/mtw-e2e-runner/capture
Clone the repo
git clone --depth 1 https://github.com/fastslack/mtw-e2e-runner
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 566 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00009 $0.00566
Opus 5 $0.00005 $0.00283
Sonnet 5 $0.00002 $0.00113
Haiku 4.5 $0.00001 $0.00057

Measured 2d ago against content hash 12b031b45916, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

capture scanned grade A with 1 finding 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 2d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Do NOT try to manually authenticate, fetch tokens, write test files, or use curl. The tool handles auth automatically from project config.
commands/capture.md · 46 lines

What it actually says

Quick Capture

Take a screenshot of any URL in one step. Handles pool checks and authentication automatically.

Workflow

  1. Check pool — Call e2e_pool_status to confirm the Chrome pool is running. If not available, tell the user to run npx e2e-runner pool start via CLI and stop.

  2. Capture — Call e2e_capture with:

    • url: The URL from the user's request (REQUIRED)
    • cwd: The current working directory (REQUIRED — always pass this)
    • fullPage: true if user says "full page", "full", "complete", or "toda la página"
    • selector: CSS selector if user wants to wait for a specific element
    • delay: milliseconds if user says "wait", "delay", or "espera"
    • waitUntil: "domcontentloaded" if user mentions WebSocket, SSE, or real-time apps
    • filename: if user specifies a name

    Authentication is automatic: the tool reads authToken, authLoginEndpoint, and authCredentials from the project's e2e.config.js. You do NOT need to pass authToken unless the user explicitly provides one.

  3. Show result — The tool returns the screenshot as an inline image. Show it to the user with the file path.

Arguments

The user passes the URL after the command:

  • /e2e-runner:capture http://localhost:3000/dashboard → capture that URL
  • /e2e-runner:capture http://localhost/concept-maps --full-page → full page capture
  • /e2e-runner:capture http://localhost/admin --delay 3000 → wait 3s before capture

If no URL is provided, ask the user for one.

Important

  • Do NOT try to manually authenticate, fetch tokens, write test files, or use curl. The tool handles auth automatically from project config.
  • Do NOT use the e2e_run tool — this is a screenshot capture, not a test run.
  • Keep it simple: one e2e_pool_status call + one e2e_capture call. That's it.
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. 2d ago First seen · 46 lines · 9 tokens per session scan A 12b031b45916

Subscribe to this mod's changes

capture is a command published in the GitHub repository fastslack/mtw-e2e-runner (3 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 9 tokens to every session and 566 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.