Skip to main content
Glama

截图

web_screenshot

Capture the current viewport, full page, or a specific element as a PNG/JPEG image, returned as MCP content or saved locally for visual confirmation.

Instructions

截取当前页面(视口或整页)或指定元素的图像,作为 MCP image 内容返回;可同时保存到本地文件。适合需要视觉确认的场合;日常结构化观察请优先使用 web_snapshot。

权限说明:只读页面内容;若提供 save_to 参数会向本地文件系统写入文件(路径由调用方指定)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNo图像格式,默认 png
qualityNojpeg 质量 0-100,默认 90
save_toNo同时保存到本地文件路径
timeoutNo超时毫秒数,默认 10 秒,0 表示不限制
selectorNo只截取该选择器命中的元素
full_pageNo截取整页而非视口,默认 false
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses read-only page content, optional file system write, and return as MCP image. It could add more about prerequisites (e.g., page must be open) but overall transparent.

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?

Description is concise and well-structured: first sentence states function, second gives usage guidance, third covers permissions. Every sentence earns its place with no redundancy.

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 6-parameter tool with no output schema, the description covers core function, return format, side effects, and usage context. It lacks some edge details (e.g., timeout behavior, selector matching), but schema covers those, making it sufficiently 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 coverage is 100%, so baseline is 3. The description adds context that full_page/selector control viewport vs element and save_to writes locally, but does not add much beyond schema descriptions already provided.

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?

The description clearly states the tool captures an image of the current page (viewport or full page) or a specified element, returning it as MCP image content. It explicitly distinguishes from web_snapshot, making the purpose unambiguous.

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?

The description explicitly says it is suitable for visual confirmation and advises using web_snapshot for routine structured observation, providing direct when-to-use and alternative guidance. It also notes the file-writing side effect when save_to is provided.

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/JohnXu22786/browser-automation'

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