Skip to main content
Glama

take_screenshot

Capture the visual state of a web page to verify layout, UI elements, and effects of navigations or clicks. Supports viewport or full-page screenshots.

Instructions

Captures the visual state of the currently selected page. Use it to verify page layout, visible UI state, selector targets, in-page dialogs/modals, or the effect of a navigation/click; it is not a substitute for DOM values, network evidence, or script inspection. By default it returns the visible viewport, while fullPage=true captures the whole document; oversized captures may be saved as a temporary artifact instead of attached. Pass filePath for a reusable local artifact; existing files require confirmOverwrite=true and remain subject to --allowedRoots.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoImage format for the attachment or saved file. Defaults to png; use jpeg when smaller lossy output is preferred.png
qualityNoCompression quality for JPEG format (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format.
filePathNoOptional absolute or working-directory-relative path for a reusable screenshot artifact. Omit it to attach the image directly. Subject to --allowedRoots when configured.
fullPageNoCapture the entire scrollable document when true; leave false or omit it for the currently visible viewport.
confirmOverwriteNoMust be true when filePath already exists. New files do not require confirmation.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesWhether the tool completed successfully.
dataNoMachine-readable result payload.
toolYesStable MCP tool name.
errorNo
summaryYesConcise human-readable outcome.
Behavior5/5

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

Annotations are minimal (readOnlyHint=false, destructiveHint=false); description adds critical behavioral details: default viewport vs. fullPage, oversized capture handling, filePath behavior and confirmOverwrite requirement, fully disclosing tool behavior.

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?

Concise 4-sentence description, front-loaded with purpose and usage, no repetition or fluff, efficiently communicates all necessary information.

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?

Given 5 optional parameters, full schema documentation, and presence of output schema, the description covers purpose, usage, behavioral nuances, and key parameter implications, making it fully self-contained.

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%, so baseline is 3. Description adds minimal param-specific insight beyond schema (e.g., fullPage behavior, oversized captures), but does not significantly enhance parameter understanding.

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?

Clearly states 'Captures the visual state of the currently selected page.' and distinguishes from sibling tools by specifying it is not a substitute for DOM values, network evidence, or script inspection.

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?

Explicitly lists use cases (verify page layout, UI state, etc.) and explicitly states when not to use it (not for DOM, network, or script), providing clear guidance for selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhizhuodemao/js-reverse-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server