Skip to main content
Glama
topaisaas-dev

Universal Native MCP Server Hub

topai_headless_screenshot

Read-onlyIdempotent

Capture a live webpage as a viewport or full-page screenshot (PNG, JPEG, WebP) for visual layout inspection and UI verification. Not for text extraction—use web-to-markdown instead.

Instructions

Renders a public webpage in a serverless headless browser and returns viewport or full-page screenshot metadata and dimensions. Use when visual layout inspection, UI verification, or image capture of a live URL is required. Do not use when you only need the textual content of a webpage (use topai_web_to_markdown instead to save 90% bandwidth and tokens). Stateless, read-only, idempotent rendering.

Input Schema

NameRequiredDescriptionDefault
urlYesPublic HTTP/HTTPS URL of the webpage to render and capture (e.g., 'https://github.com').
formatNoOutput image encoding format: 'png', 'jpeg', or 'webp' (default: 'png').
full_pageNoSet to true to capture the entire scrollable document height, or false for the above-the-fold viewport only (default: false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, and the closing sentence largely restates those ('Stateless, read-only, idempotent'). The genuinely additive detail is the 'public webpage' constraint, which implies pages behind auth cannot be rendered, but this is not spelled out and no return-shape or failure behavior is described.

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?

Three sentences, front-loaded with purpose then routing guidance, with no filler. The trailing 'Stateless, read-only, idempotent rendering' sentence is largely redundant with the annotations already attached to the tool, which is the only waste.

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

Completeness4/5

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

For a three-parameter read-only tool with no output schema, the description covers purpose, routing, and the public-URL constraint adequately. It does signal the return is metadata/dimensions rather than raw image bytes, but does not explain how a caller retrieves the actual image, leaving a modest gap.

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%, so the schema already documents url, format, and full_page, including the enum values and defaults. The description only echoes the viewport/full-page distinction, adding no format, size, or URL-syntax detail beyond the schema; baseline 3 applies.

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 ('Renders a public webpage in a serverless headless browser') and names what it returns (viewport or full-page screenshot metadata and dimensions). It explicitly distinguishes itself from the sibling topai_web_to_markdown, so an agent can route correctly without opening either 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 explicit when-to-use ('visual layout inspection, UI verification, or image capture of a live URL') and when-not-to-use ('only need the textual content') with the exact alternative named and a quantified reason (90% bandwidth/token savings). Nothing is left to inference.

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