Skip to main content
Glama

Capture a web page

capture_web_page

Screenshot a web page in a headless Chrome: the first screen, the full page, or one element. With a project the image is imported into it; without one it comes back in the result. With scroll it records the page scrolling instead, as a video clip for the project.

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>",
      "context": "<context>"
    },
    "name": "capture_web_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe page to capture
waitNoSeconds to let the page settle after it loads
scaleNoDevice pixel ratio (default 2)
themeNolight (default) or dark pick the site’s own theme; force-dark also darkens a page with no dark theme; system follows the capturing browser
widthNoViewport width in CSS pixels (default 1440)
heightNoViewport height in CSS pixels (default 900)
scrollNoRecord the page scrolling down from the top as a video clip (1920x1080, 30 fps) imported into the project, rather than a still. For a shot of the site being scrolled: sticky headers stay in view and the page’s own motion plays, where a full page is one tall still the edit has to pan over. The view is 1440x810 unless width and height say otherwise. Needs project; not with fullPage or selector.
contextYesA few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details.
projectNoImport the image into this project
fullPageNoCapture the whole scrollable page
selectorNoCapture only the first element matching this CSS selector
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
fullMotionNoKeep the page’s animations; by default it is asked for reduced motion so stills do not catch a transition
scrollScreensNoHow far it scrolls, in heights of the view (default 3); a page that ends sooner stops at its end
scrollSecondsNoHow long the scroll takes, in seconds (default 6)
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details.",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The model identifier you are running as, for example \"claude-opus-4-8\" or \"gpt-5.2\". Pass \"unknown\" if you are not certain. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "url"
      -]New value: +[
      +  "url",
      +  "context"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare it is not read-only and is open-world, and the description adds the mechanics that matter: headless Chrome, project-import versus in-result delivery, and that scroll yields a 1920x1080, 30fps clip rather than a still. It does not discuss failure modes on unreachable pages or any rate limits, which keeps it from a 5.

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?

Three sentences, front-loaded with the core action, followed by the two conditional delivery behaviors. There is no filler, no restatement of the title, and each sentence adds a decision-relevant fact.

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 16-parameter tool with full schema coverage and no output schema, the description covers what an agent most needs: capture modes, delivery path, and the scroll alternative. It leaves the analytics/consent parameters (context, llm_model, conversation_id) and visual knobs to their schema text, which is acceptable given those are self-documenting.

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 a 3 is the baseline, but the description adds interpretive value by mapping concept to parameter: 'first screen, full page, or one element' tells the agent which of the default/fullPage/selector behaviors it is choosing, and the scroll sentence conveys the project requirement and scroll framing not obvious from the flags alone.

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?

The first clause names the verb and resource precisely ('Screenshot a web page in a headless Chrome') and immediately enumerates the three capture modes: first screen, full page, or one element. The scroll variant is also stated as a distinct output type (video clip), so an agent knows exactly what this tool produces before opening 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?

The description gives real when-to-use guidance for its major branches: with a project the image is imported, without one it is returned in the result, and scroll is for shots of a page being scrolled because sticky headers stay in view. It stops short of explicitly naming sibling alternatives (e.g. grab_frame or generate_image) as a differentiator, so it is clear but not fully routing.

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