Skip to main content
Glama

screenshot

Read-onlyIdempotent

Capture Godot scene visuals, analyze image content, or perform pixel-level PNG comparisons to spot UI and rendering issues.

Instructions

Screenshot capture and image analysis handoff. capture: capture a Godot scene screenshot in headless mode (experimental). analyze: return the image as MCP image content (base64) for the client vision capability to examine — returns image data, NOT a text description.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sceneNocapture: Scene file path relative to project (res://scenes/main.tscn). If omitted, captures the default scene or an empty viewport.
actionYesAction type: capture (take a screenshot), analyze (AI visual analysis of an image), or diff (pixel-level comparison of two PNG images)
detailNoP1-5 视觉成本层级:full(完整 base64 图像,高 token) / thumbnail(缩放至 thumbnail_width 的 PNG,中 token) / ascii(ASCII art 文本,低 token)。默认 full。full
image_aNodiff: 基准图(a 图)路径。相对路径需 project_path;两图尺寸必须一致。
image_bNodiff: 对比图(b 图)路径。路径策略同 analyze 的 image_path(白名单校验)。
questionNoanalyze: Question for the AI to answer about the image. Default: "Describe what you see in this game screenshot."Describe what you see in this game screenshot. Focus on: UI elements, character positions, any visual issues or bugs.
diff_pathNodiff: 可选,差异图输出路径。差异像素染纯红 (255,0,0),其余保留 a 图原色。不提供则不写文件。
thresholdNodiff: per-pixel 归一化欧氏距离阈值 sqrt(Δr²+Δg²+Δb²)/(√3×255),0-1,默认 0.12。恰好等于阈值不计差(严格大于才计)。忽略 alpha 只比 RGB。
wait_nodeNocapture: 等待该节点(名或 /root/... 路径)出现在场景树再截图。对分帧构建/异步初始化场景,优先于 frame_delay 生效;超时(固定 300 帧≈5s@60fps,独立于 max_frames)后放弃等待直接截图
wait_textNocapture: 等待任一 Label/RichTextLabel 的 text 包含该子串再截图;超时同 wait_node(固定 300 帧≈5s@60fps,独立于 max_frames)
ascii_colsNodetail=ascii: 字符列数(默认 80)
ascii_rowsNodetail=ascii: 字符行数(默认 40)
godot_pathNo覆盖 Godot 二进制路径(可选,优先于项目配置和环境变量)
image_pathNoanalyze: Absolute path to the image file (PNG or JPG)
frame_delayNocapture: Frames to wait before capture (default: 15)
output_pathNocapture: Output PNG path (absolute). Defaults to <project_path>/screenshot.png
project_pathNoPath to Godot project directory
vision_routeNoPhase 2 Vision Routing:开启时调视觉模型(groq)把图片翻译成文字描述,返回纯文本(不含 image block),让纯文本模型(DeepSeek 等)也能"看懂"截图。失败时 fallback 到 detail 分层 + 追加 note。需 GODOT_MCP_VISION_KEY 环境变量。
viewport_widthNocapture: Viewport width in pixels (default: 1280)
thumbnail_widthNodetail=thumbnail: 目标宽度像素(默认 256,保持纵横比)
viewport_heightNocapture: Viewport height in pixels (default: 720)
vision_questionNovision_route=true 时传给视觉模型的上下文(可选,如"我在调试 Player 走路动画")。
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, which covers the safety profile. The description adds useful behavioral context by labeling headless capture as 'experimental' and explicitly stating that analyze returns image data rather than text. However, it does not qualify that vision_route can make the tool return a plain-text description instead of image content, creating a slight gap in the blanket 'NOT a text description' claim.

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 text is short, front-loaded with the core purpose, and avoids redundant restatement of schema fields. That said, the conciseness is achieved in part by omitting the 'diff' action and the vision_route exception, so the structure is economical but not fully representative of the tool's capabilities.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex tool with 22 parameters and three distinct actions, yet the description only discusses two of them and says nothing about diff. There is no output schema, so the description is a lower source of truth for what each mode returns or requires. The missing diff mode and the unqualified analyze-vs-vision_route statement leave the description incomplete for an agent serving the full schema.

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?

The input schema has 100% parameter description coverage, so the schema already documents all fields. The description itself adds minimal parameter-level detail beyond naming 'capture' and 'analyze', and does not help understand the 'diff' parameters or the relationship between vision_route and analyze. With complete schema coverage, the baseline of 3 is appropriate.

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 identifies a specific resource ('Godot scene screenshot') and provides distinct verbs for capture ('capture') and analyze ('return the image as MCP image content'). However, the action enum includes a third mode, 'diff', which the description never mentions, so an agent cannot tell from the description that pixel-level image comparison is in scope. Overall clear but incomplete on the full purpose.

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

Usage Guidelines2/5

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

The description gives brief per-action meanings for 'capture' and 'analyze', but provides no guidance on when to use this tool versus siblings or when to choose the 'diff' action. It also does not specify conditions like needing a client vision capability or a text-output alternative, beyond a single caution that analyze returns image data, not a text description.

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/wgt19861219/godot-mcp-enhanced'

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