Skip to main content
Glama

screenshot_page

Read-only

Render a permitted page and return desktop (1440x1000) and mobile (390x844) PNG screenshots as image attachments. Defaults to the explicitly selected draft, otherwise live. Set target.draftId to select a private draft. Attendee pages use generated fictional data unless inputs.attendee supplies a complete override. Override inputs and declared initial state to inspect later screens without submitting a form. Use dataFixtures to hold query results in success, empty, idle, loading, error, refreshing or loadingMore states, with built-in samples or custom values. Fixtures apply to built-in galleries and custom data collections. Overrides never edit or publish the document. Each top-level override is a full replacement, not a merge. Waits for rendering, fonts and images; fixture loading states are capture-ready.

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": {
      "target": "<target>"
    },
    "name": "screenshot_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNoOptional initial state overrides keyed by declared state name. Use plain JSON values
inputsNoOptional overrides for inputs declared by the page or its host. Values replace complete top-level inputs; supply complete objects and arrays.
sourceNoDefaults to working: the explicitly selected draft if present otherwise live.
targetYesTarget page resource; kind must be page.
dataFixturesNoOptional fixed query states for visual testing. Omit for normal sample data. When supplied every queried resource must match a fixture; missing matches are errors. An empty array matches nothing. Fixtures never edit or publish the document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / target / properties / designId
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / target / properties / kind / enum
      Previous value: -[
      -  "page",
      -  "email"
      -]New value: +[
      +  "page",
      +  "email",
      +  "wallet",
      +  "apple-wallet",
      +  "google-wallet"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / dataFixtures
      Added value: +{
      +  "description": "Optional fixed query states for visual testing. Omit for normal sample data. When supplied every queried resource must match a fixture; missing matches are errors. An empty array matches nothing. Fixtures never edit or publish the document.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "description": "Optional message for the error scenario.",
      +        "type": "string"
      +      },
      +      "hasMore": {
      +        "description": "Paginated queries only. Defaults to true for loadingMore and false otherwise. empty requires false.",
      +        "type": "boolean"
      +      },
      +      "params": {
      +        "description": "Optional complete query parameters to match after host normalization. Omit to match all parameters for this query. Exact matches take precedence.",
      +        "type": "object"
      +      },
      +      "query": {
      +        "description": "Query name from the page queries catalog.",
      +        "type": "string"
      +      },
      +      "scenario": {
      +        "description": "Fixed visual state. success refreshing and loadingMore use built-in sample records unless value is supplied. Other scenarios use the query initial value. Data actions do not change fixture states.",
      +        "enum": [
      +          "success",
      +          "empty",
      +          "idle",
      +          "loading",
      +          "error",
      +          "refreshing",
      +          "loadingMore"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "object"
      +          },
      +          {
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Optional complete query result matching its result schema. Pass JSON directly including explicit null. Omit for built-in data. Not allowed with empty."
      +      }
      +    },
      +    "required": [
      +      "query",
      +      "scenario"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / inputs / description
      Previous value: -"Optional input overrides. Values replace complete top-level inputs; supply complete objects and arrays."New value: +"Optional overrides for inputs declared by the page or its host. Values replace complete top-level inputs; supply complete objects and arrays."
    • removedInput schema / properties / target / properties / organizationId
      Removed value: -{
      -  "minLength": 1,
      -  "type": "string"
      -}
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/non-destructive, but the description adds behavior an agent could not infer: it waits for rendering, fonts and images before capturing, fixture loading states are capture-ready, overrides never edit or publish, each top-level override is a full replacement rather than a merge, and unmatched fixtures are errors. It also discloses the return medium (image attachments) and the size of both viewports.

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?

Front-loaded with the core action and output dimensions, then moves through defaults, overrides, fixtures and capture behavior in a logical order. It is dense but nearly every sentence adds a distinct fact; minor redundancy exists where 'never edit or publish' is asserted twice and is also echoed in the schema.

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?

For a tool with nested target objects and an array of fixture objects, the description covers defaults, private-draft access, override replacement semantics, attendee data behavior, error conditions for unmatched fixtures, and what the return value is. Although no output schema exists, the description states the return is PNG image attachments at two fixed sizes, which is sufficient.

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 description coverage is 100%, so the baseline is 3; the description earns extra by clarifying the replace-not-merge semantics of state/inputs, the draftId selection path, the scenario list, and the fact that fixtures apply to built-in galleries and custom data collections. Some of this restates schema text, which keeps it from a 5.

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

Purpose4/5

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

Opens with a specific verb+resource and concrete output: 'Render a permitted page and return desktop (1440x1000) and mobile (390x844) PNG screenshots as image attachments.' That is far more precise than a tautology. It does not, however, explicitly distinguish itself from the sibling screenshot_email/screenshot_wallet tools; the 'kind must be page' constraint lives only in the schema.

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

Usage Guidelines4/5

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

Gives clear operating context: defaults to the selected draft otherwise live, set target.draftId for a private draft, use state/inputs overrides to inspect later screens without submitting a form, and use dataFixtures for query states. It never names an alternative tool or states when NOT to use this one, so it stops short of a 5.

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.