Skip to main content
Glama

screenshot

Read-only

Capture the current tab or a specific element as an image when snapshots cannot show visual details in canvas, images, or complex layouts; optionally capture the full page.

Instructions

截图当前标签页(可指定 ref 只截某个元素)。用于快照看不清的场景(canvas、图片、复杂布局)。操作元素仍请用 snapshot 的 ref。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo只截这个元素
fullPageNo截整页(长页面),默认只截可视区域

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety and side-effect profile is covered. The description adds genuine context beyond that: it captures the current tab rather than the whole browser, and it frames the tool as a visual fallback when the DOM snapshot fails. It does not say what comes back (image payload, encoding, or size 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 short sentences: what it does, when to prefer it, and when to use the alternative instead. The ordering is front-loaded with the action, and no sentence is filler.

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 two-parameter, read-only tool with full schema coverage, this is nearly complete: purpose, trigger conditions, and routing to snapshot are all present. The only gap is that there is no output schema, so the description could have stated that the result is image content rather than text.

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

Parameters3/5

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

Schema coverage is 100%, and both `ref` and `fullPage` are already described in the schema, so the description need not repeat them. It adds one useful hint — that `ref` values come from snapshot — but otherwise the schema carries the parameter burden, so baseline 3 applies.

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 ('screenshot the current tab') plus a scoped variant ('specify ref to capture only that element'), and explicitly positions itself against the sibling snapshot. An agent can tell exactly what this produces and how it differs from snapshot without opening either 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?

Gives an explicit when-to-use condition (cases where snapshot is unclear: canvas, images, complex layouts) and an explicit when-not / alternative ('for interacting with elements, still use snapshot's ref'). Both the selection rule and the exclusion are stated, 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.