Skip to main content
Glama

screenshot

Capture a browser tab’s current viewport as a size-limited PNG for visual checks, debugging, and state verification.

Instructions

Return a size-limited PNG screenshot of the current viewport.

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": {
      "tab_id": "<tab_id>"
    },
    "name": "screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
tab_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, but it does disclose two genuinely useful traits: the output format (PNG) and the capture scope (current viewport, not full page) plus a size cap. It says nothing about whether the tab must be active or foreground, what happens with offscreen content, or what the size limit actually is.

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?

One sentence, front-loaded with the verb and the returned artifact, with zero filler. Nothing is wasted or buried.

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

Completeness3/5

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

For a one-parameter read tool this covers the essentials (format, scope), and the image return needs no output schema. But with no annotations and no parameter documentation, the definition leaves the agent guessing which tab is captured and what 'size-limited' means in practice.

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

Parameters2/5

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

Schema coverage is 0% and the single required parameter tab_id is never mentioned in the description, so nothing clarifies that tab_id selects which tab's viewport is captured. 'Current viewport' actually adds ambiguity about whether the tab is chosen or assumed.

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?

Names a specific verb ('Return') and a specific artifact ('PNG screenshot of the current viewport'), which implicitly separates it from text/DOM siblings like snapshot or fetch_text. It stops short of explicitly naming any sibling as the alternative, so an agent must infer the split.

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

Usage Guidelines2/5

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

There is no guidance on when to reach for a screenshot versus snapshot, fetch_text, or fetch_links, and no preconditions stated. The only implied usage is 'when you need a visual capture', which the agent must derive itself.

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