Skip to main content
Glama

Capture screenshot

capture_screenshot

Takes a full-page screenshot of one URL, for example to see how a relaunched page or a mobile layout looks. Free 10 times per client address per day, no key needed. The PNG is taken at the given viewport width and returned inline when small, else as links.file to fetch with the jobToken. Call it for a one-off look at a page or a mobile-width check. Do not call it for pages a comparison job covers: the job already stored their screenshots. Example: { "url": "https://new.example/pricing", "viewportWidth": 375 }. Answers with jobId, jobToken, filename, url, dimensions, bytes, links.file and, on a free run, sample and allowanceRemaining.

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": "capture_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPage to capture (full URL).
authNoHTTP basic auth for the page.
visualNoCapture rules applied to both sides.
viewportWidthNoCapture width in px.
idempotencyKeyNoRetry key: under a prepaid balance, the same value within 24 hours is not charged again and answers DUPLICATE_REQUEST with the first jobId.

Output Schema

NameRequiredDescriptionDefault
urlNo
codeNo
bytesNo
errorNo
jobIdNo
linksNo
regionNo
sampleNo
paymentNo
filenameNo
jobTokenNo
followUpsNo
imageSizeNo
dimensionsNo
pagesChargedNo
allowanceRemainingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / idempotencyKey / description
      Previous value: -"Optional opaque string a retry repeats: under a prepaid balance the same value within 24 hours is not charged again and answers DUPLICATE_REQUEST with the jobId of the first call."New value: +"Retry key: under a prepaid balance, the same value within 24 hours is not charged again and answers DUPLICATE_REQUEST with the first jobId."
  2. Changed1 schema field changed
    • addedOutput schema / properties / followUps
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. Changed3 schema fields changed
    • changedInput schema / properties / visual / properties / freeze / properties / clock / description
      Previous value: -"Pause timers and the clock after load on both sides; a page that waits on a timer to render may stay empty."New value: +"Pause timers and the clock after load; a page that needs a timer to render may stay empty."
    • addedInput schema / properties / visual / properties / freeze / properties / clockSeconds
      Added value: +{
      +  "description": "With clock: seconds the clock runs after load before it stops (1 to 600, default 60).",
      +  "maximum": 600,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / visual / properties / masks / description
      Previous value: -"CSS selectors of elements hidden on both sites before the screenshot (at most 50, each up to 200 characters). The box is kept, so the layout does not shift."New value: +"CSS selectors of elements hidden on both sites before the screenshot (at most 50, each up to 200 characters). The layout keeps its place."
  5. Changed1 schema field changed
    • addedInput schema / properties / visual
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Capture rules applied to both sides.",
      +  "properties": {
      +    "freeze": {
      +      "additionalProperties": false,
      +      "description": "Switches that stop motion before the screenshot.",
      +      "properties": {
      +        "animations": {
      +          "description": "Stop CSS animations and transitions before the screenshot.",
      +          "type": "boolean"
      +        },
      +        "clock": {
      +          "description": "Pause timers and the clock after load on both sides; a page that waits on a timer to render may stay empty.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "masks": {
      +      "description": "CSS selectors of elements hidden on both sites before the screenshot (at most 50, each up to 200 characters). The box is kept, so the layout does not shift.",
      +      "items": {
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "maxItems": 50,
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  6. Changed2 schema fields changed
    • addedOutput schema / properties / imageSize
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "height": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "width": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "width",
      +    "height"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / region
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "height": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "width": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "x": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "y": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "x",
      +    "y",
      +    "width",
      +    "height"
      +  ],
      +  "type": "object"
      +}
  7. Changed4 schema fields changed
    • changedInput schema / properties / idempotencyKey / description
      Previous value: -"Optional opaque string a retry repeats: under a prepaid key the same value within 24 hours is not charged again and answers DUPLICATE_REQUEST with the jobId of the first call."New value: +"Optional opaque string a retry repeats: under a prepaid balance the same value within 24 hours is not charged again and answers DUPLICATE_REQUEST with the jobId of the first call."
    • addedOutput schema / properties / allowanceRemaining
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / pagesCharged
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / sample
      Added value: +{
      +  "type": "boolean"
      +}
  8. Changed1 schema field changed
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "description": "Optional opaque string a retry repeats: under a prepaid key the same value within 24 hours is not charged again and answers DUPLICATE_REQUEST with the jobId of the first call.",
      +  "maxLength": 255,
      +  "minLength": 1,
      +  "type": "string"
      +}
  9. Changed5 schema fields changed
    • removedOutput schema / properties / payment / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / payment / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amount": {
      +        "type": "string"
      +      },
      +      "balance": {
      +        "type": "string"
      +      },
      +      "currency": {
      +        "const": "USD",
      +        "type": "string"
      +      },
      +      "rail": {
      +        "const": "prepaid",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "amount",
      +      "currency",
      +      "rail",
      +      "balance"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "allowanceRemaining": {
      +        "type": "number"
      +      },
      +      "amount": {
      +        "type": "string"
      +      },
      +      "currency": {
      +        "const": "USD",
      +        "type": "string"
      +      },
      +      "pagesFromAllowance": {
      +        "type": "number"
      +      },
      +      "rail": {
      +        "const": "subscription",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "amount",
      +      "currency",
      +      "rail",
      +      "pagesFromAllowance",
      +      "allowanceRemaining"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / payment / properties
      Removed value: -{
      -  "amount": {
      -    "type": "string"
      -  },
      -  "balance": {
      -    "type": "string"
      -  },
      -  "currency": {
      -    "const": "USD",
      -    "type": "string"
      -  },
      -  "rail": {
      -    "const": "prepaid",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / payment / required
      Removed value: -[
      -  "amount",
      -  "currency",
      -  "rail",
      -  "balance"
      -]
    • removedOutput schema / properties / payment / type
      Removed value: -"object"
  10. Changed2 schema fields changed
    • addedInput schema / properties / auth / properties / password / description
      Added value: +"Password for HTTP basic auth."
    • addedInput schema / properties / auth / properties / username / description
      Added value: +"Username for HTTP basic auth."
  11. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "bytes": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "code": {
      +      "type": "string"
      +    },
      +    "dimensions": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "error": {
      +      "type": "string"
      +    },
      +    "filename": {
      +      "type": "string"
      +    },
      +    "jobId": {
      +      "type": "string"
      +    },
      +    "jobToken": {
      +      "type": "string"
      +    },
      +    "links": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "file": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "file"
      +      ],
      +      "type": "object"
      +    },
      +    "payment": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "amount": {
      +          "type": "string"
      +        },
      +        "balance": {
      +          "type": "string"
      +        },
      +        "currency": {
      +          "const": "USD",
      +          "type": "string"
      +        },
      +        "rail": {
      +          "const": "prepaid",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "amount",
      +        "currency",
      +        "rail",
      +        "balance"
      +      ],
      +      "type": "object"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  12. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true), the description discloses a concrete quota (free 10 times per client address per day, no key needed) and how the artifact is delivered (inline when small, otherwise links.file fetched with jobToken). The retry/charge behavior of idempotencyKey is also surfaced in the schema, and the description's fee context complements it.

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 purpose, then limits, then delivery, then the negative guidance and example — good ordering, with no filler sentences. It loses a little by re-stating viewport behavior twice ("taken at the given viewport width" and "a mobile-width check") and by enumerating return fields that the output schema already defines.

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 5-parameter, nested-schema, open-world capture tool, the description covers the quota, auth-free access, artifact retrieval path, and the off-limits case; the existing output schema covers the return fields so no explanation of those is needed. Nothing an agent needs in order to call it correctly is missing.

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 already 100%, so the baseline is 3; the description earns a bump by tying viewportWidth to its practical intent (mobile-width check) and giving a literal example call with url and viewportWidth=375. It does not add meaning for auth, visual.masks/freeze, or idempotencyKey beyond what the schema documents.

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?

"Takes a full-page screenshot of one URL" gives a specific verb and resource, and the scope (single URL, full page, given viewport width) is stated up front. It also marks the boundary against comparison jobs, so an agent can separate it from diff_deploy/get_report without opening another 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?

Explicit when-to-use ("a one-off look at a page or a mobile-width check") and when-not-to-use ("Do not call it for pages a comparison job covers: the job already stored their screenshots"). The alternative is named by role and the condition selecting it, leaving nothing to inference.

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