Skip to main content
Glama

screenshot_session

Capture the current session page as-is without performing actions and return its image path; full-page capture is prepared by default, with raw and viewport options for workflow checkpoints.

Instructions

Screenshot the session's current page as-is — no actions performed. Returns the image path (full-page by default; full_page=false captures just the viewport). Full-page captures are PREPARED for fidelity: sticky/fixed headers are neutralized (no mid-page duplication), animations disabled, reduced-motion emulated, and scroll-reveal sections forced visible — the applied steps are reported in capture_prep. Pass raw=true to capture the unprepared stitch. Use to grab state at a point in a workflow; interactive tools already return screenshots, so don't call this after every step.

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": {
      "session_id": "<session_id>"
    },
    "name": "screenshot_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNoSkip full-page capture preparation (sticky neutralization, reveal forcing) and capture the raw Playwright stitch (default: false). Only affects full-page captures.
modeNofull (default) | viewport | tiles: full-page capture split into legible tile_height-px images (use for pages taller than ~6000 px — the result also lists tiles[]) | element (needs selector)
selectorNoClip to one element: screenshot just the first match (for citing evidence). Overrides full_page.
full_pageNoCapture full scrollable page (default: true)
session_idYesSession ID
tile_heightNoTile height in px for mode='tiles' (default: 1600)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.12.0
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "full (default) | viewport | tiles: full-page capture split into legible tile_height-px images (use for pages taller than ~6000 px — the result also lists tiles[]) | element (needs selector)",
      +  "enum": [
      +    "full",
      +    "viewport",
      +    "tiles",
      +    "element"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / tile_height
      Added value: +{
      +  "description": "Tile height in px for mode='tiles' (default: 1600)",
      +  "type": "integer"
      +}
  2. Changed1 schema field changedv0.10.3
    • addedInput schema / properties / raw
      Added value: +{
      +  "description": "Skip full-page capture preparation (sticky neutralization, reveal forcing) and capture the raw Playwright stitch (default: false). Only affects full-page captures.",
      +  "type": [
      +    "boolean",
      +    "string"
      +  ]
      +}
  3. Changed1 schema field changedv0.10.0
    • addedInput schema / properties / selector
      Added value: +{
      +  "description": "Clip to one element: screenshot just the first match (for citing evidence). Overrides full_page.",
      +  "type": "string"
      +}
  4. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that capture is non-interactive, that full-page mode mutates page state for fidelity (sticky neutralization, animations disabled, reduced-motion, scroll-reveal forcing), and that those steps are reported back in capture_prep. It stops short of stating timing behavior (e.g., whether it waits for load/idle) or any permission constraints.

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?

The purpose and the key caveat are front-loaded, and the preparation detail is grouped in one clause rather than scattered. The single dense paragraph with em-dash asides is efficient but slightly harder to scan than a short structured form.

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?

With six parameters and no output schema, the description compensates by describing the return value (image path, capture_prep steps, tiles[] for tall pages). An agent has enough to choose modes and interpret results without opening anything else.

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%, so all six parameters are already documented, and the description mostly restates those defaults (full-page on, raw off) while adding the rationale that raw skips preparation. That rationale is genuine added meaning, but the mode/tiles/selector semantics are left entirely to the schema, so baseline 3 is appropriate.

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?

"Screenshot the session's current page as-is — no actions performed" names a specific verb and resource and immediately delimits scope (passive capture, not interaction). It also distinguishes itself from interactive siblings by noting those already return screenshots.

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?

It gives a clear positive case ("grab state at a point in a workflow") and an explicit negative case ("don't call this after every step" because interactive tools already return screenshots). The only gap is that it never clarifies its relationship to a similarly named sibling, so the agent must still guess between near-duplicate capture tools.

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