Skip to main content
Glama

screenshot

Read-only

Capture a browser session's current page as a PNG and return the image plus the file path where it was saved.

Instructions

Capture the session page as a PNG; returns the image and the file path it was saved to.

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
cwdNoProject directory (absolute) the command runs in; sitelooper.config.json is found from here. Default: the server's working directory.
sessionNoBrowser session name (default "default"). Each session is its own browser and daemon.
full_pageNoCapture the full scrollable page (--full-page).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds genuinely new behavior by disclosing that the capture is returned as an image AND persisted to a file path. That side effect (writing a file to disk) is not inferable from the annotation, though the description stops short of saying where the file lands or whether it is overwritten. No contradiction with readOnlyHint, since the browser session itself is untouched.

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?

A single compact sentence with the action front-loaded and the return contract trailing it. Nothing is padded or repeated.

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?

With no output schema, the description does a reasonable job naming both return values, but it omits the save location of the file and whether a session must already be open. For a simple tool with three optional, fully documented parameters this is adequate but not complete.

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 description coverage is 100% and all three parameters (cwd, session, full_page) are documented in the schema with their defaults and CLI flags. The description adds no parameter-level meaning beyond it, so the baseline of 3 applies.

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?

The description gives a specific verb and resource ("Capture the session page as a PNG") plus the return payload, so the agent knows exactly what it produces. It does not explicitly distinguish itself from near-neighbors like peek or open, leaving that separation to name inference rather than stated contrast.

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

Usage Guidelines3/5

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

Usage is only implied: it is obviously for grabbing a visual of a session page, but there is no statement of when to prefer it over peek/check or any prerequisite about the session state. No exclusions or alternatives are named.

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