Skip to main content
Glama

Screenshot catalogue pages

screenshot_pages

Render pages of a catalogue in headless Chromium and return them as images — the same layout pass the PDF export uses, so what you see is what prints. This is how you check your own work after an edit. Ask for up to 6 pages in ONE call: a call paginates once, up to the highest page requested, so capturing pages 55-58 together costs a quarter of what four separate calls do. Pages that do not exist are reported in "missing" rather than silently dropped. Screenshots come from what is STORED — make your edit with update_file or the component tools first. Rendering may fetch external assets referenced by the catalogue and writes render diagnostics.

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": {
      "documentId": "<documentId>",
      "pages": "<pages>",
      "llm_model": "<llm_model>"
    },
    "name": "screenshot_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesYesThe 1-based page numbers to capture, at most 6. Batch them — one call is one pagination pass.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
documentIdYesThe catalogue's id, from list_documents.
conversation_idNoPass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag readOnlyHint=false and openWorldHint=true; the description explains why by disclosing that rendering fetches external assets and 'writes render diagnostics'. It also adds the pagination cost model and the 'missing' reporting behavior for nonexistent pages, which are non-obvious behavioral facts no structured field carries.

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

Conciseness5/5

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

Front-loaded with the verb and the 'what you see is what prints' framing, then ordered by decision: how to use it, how to batch, what happens to missing pages, and the stored-state caveat. No sentence is redundant.

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?

With no output schema, the description carries the return burden and does so by naming the 'missing' field and describing the image output. For a 4-parameter, side-effecting render tool, an agent has everything needed to invoke it correctly in one attempt.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: the 6-page cap, the fact that a call paginates up to the highest page requested, and the cost implication of batching. It does not touch documentId or conversation_id, though the schema documents those thoroughly on its own.

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 ('Render pages of a catalogue in headless Chromium and return them as images') and immediately ties the output to a known artifact, the PDF export's layout pass. That differentiates it from nearby tools such as preview_catalogue or export_pdf without the agent needing to open their schemas.

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 ('This is how you check your own work after an edit'), an ordering prerequisite ('Screenshots come from what is STORED — make your edit with update_file or the component tools first'), and a batching rule ('Ask for up to 6 pages in ONE call'). Both the correct moment and the correct sequencing relative to siblings are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources