screenshot
Capture Godot scenes headlessly and analyze images by returning base64 data for AI vision inspection.
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
| Name | Required | Description | Default |
|---|---|---|---|
| scene | No | capture: Scene file path relative to project (res://scenes/main.tscn). If omitted, captures the default scene or an empty viewport. | |
| action | Yes | Action type: capture (take a screenshot) or analyze (AI visual analysis of an image) | |
| detail | No | P1-5 视觉成本层级:full(完整 base64 图像,高 token) / thumbnail(缩放至 thumbnail_width 的 PNG,中 token) / ascii(ASCII art 文本,低 token)。默认 full。 | full |
| question | No | analyze: 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. |
| wait_node | No | capture: 等待该节点(名或 /root/... 路径)出现在场景树再截图。对分帧构建/异步初始化场景,优先于 frame_delay 生效;超时(固定 300 帧≈5s@60fps,独立于 max_frames)后放弃等待直接截图 | |
| wait_text | No | capture: 等待任一 Label/RichTextLabel 的 text 包含该子串再截图;超时同 wait_node(固定 300 帧≈5s@60fps,独立于 max_frames) | |
| ascii_cols | No | detail=ascii: 字符列数(默认 80) | |
| ascii_rows | No | detail=ascii: 字符行数(默认 40) | |
| godot_path | No | 覆盖 Godot 二进制路径(可选,优先于项目配置和环境变量) | |
| image_path | No | analyze: Absolute path to the image file (PNG or JPG) | |
| frame_delay | No | capture: Frames to wait before capture (default: 15) | |
| output_path | No | capture: Output PNG path (absolute). Defaults to <project_path>/screenshot.png | |
| project_path | No | Path to Godot project directory | |
| viewport_width | No | capture: Viewport width in pixels (default: 1280) | |
| thumbnail_width | No | detail=thumbnail: 目标宽度像素(默认 256,保持纵横比) | |
| viewport_height | No | capture: Viewport height in pixels (default: 720) |