Skip to main content
Glama

AgentSearch Screenshot

agentsearch_screenshot
Read-onlyIdempotent

Take a screenshot of a public web page in a real headless browser and return it as an MCP image (PNG or JPEG) plus JSON metadata: final URL, title, status code, image size and warnings.

Instructions

Take a screenshot of a public web page in a real headless browser and return it as an MCP image (PNG or JPEG) plus JSON metadata: final URL, title, status code, image size and warnings. Use this when you need to see a page (layout, charts, visual checks, pages whose content is images); for the page's text use agentsearch_extract or agentsearch_render instead. Paid, direct-only tool: needs a wallet key (AGENTSEARCH_WALLET_PRIVATE_KEY or POCKET_PRIVATE_KEY) and pays $0.004 per call in USDC on Base to AgentSearch's own x402 API (https://api.agentsearchhq.com/x402/v1/screenshot); failed captures are not charged. Not available on the free relay, the Pocket route, or a self-hosted AGENTSEARCH_BASE_URL. Never signs more than the per-call cap ($0.020 by default) or AGENTSEARCH_MAX_TOTAL_ATOMIC per session (default $1.00). The page shown is untrusted third-party content. Read-only: not destructive, but it fetches over the network and can hit rate limits.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "agentsearch_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute public http(s) URL of the page.
formatNoImage format (default png).
viewportNoBrowser viewport in CSS pixels (e.g. 390x844 for mobile).
full_pageNoCapture the whole page, clipped at 4000 px tall, instead of the viewport (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.8.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, openWorld, idempotent and non-destructive, and the description goes well beyond them: exact price ($0.004 USDC on Base), required wallet env vars, exemption for failed captures, per-call cap ($0.020) and per-session cap ($1.00), plus the warning that page content is untrusted and that network fetches can hit rate limits. That is the kind of cost, auth and safety context an agent cannot get from annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause and every later sentence carries non-redundant information (return metadata, alternatives, cost/auth, caps, untrusted content). It reads as one dense paragraph with several clauses chained by colons and semicolons, which is slightly heavy but contains no filler worth cutting.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a paid, credentialed, network-fetching tool: the description covers return values, cost, payment auth, spending limits, environment restrictions, failure billing behavior and content-safety caveat. No output schema exists, yet the return payload is enumerated, so nothing an agent needs to call or interpret it is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, including the format enum, viewport bounds and full_page clipping note, so the schema already carries all four parameters. The description only echoes the PNG/JPEG output form and adds no syntax, default or constraint meaning beyond the schema, which matches the baseline of 3 when structured fields do the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Take a screenshot of a public web page in a real headless browser') and specifies the return shape (MCP image plus JSON metadata with final URL, title, status code, image size, warnings). It explicitly distinguishes itself from the text-oriented siblings agentsearch_extract and agentsearch_render, so an agent can pick it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use rule (layout, charts, visual checks, pages whose content is images) and an explicit when-not with named alternatives (use agentsearch_extract or agentsearch_render for text). It also states the environments where the tool will not work at all: free relay, Pocket route, and self-hosted AGENTSEARCH_BASE_URL.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.