Skip to main content
Glama

capture_unity_screenshot

Captures the active Unity Game camera or Scene View as a PNG and returns screenshot metadata plus an image block, so AI clients can inspect rendered views.

Instructions

Capture the active Game camera or Scene View as a PNG. Returns screenshot metadata and an MCP image block. Game capture works in Edit or Play Mode; Scene capture requires an open Scene View. Requires BanterMCPBridge extension to be installed and Unity Editor running.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "capture_unity_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthNoPNG width in pixels
heightNoPNG height in pixels
sourceNoView to capturegame
cameraIdNoOptional Camera component globalObjectId for Game capture
cameraPathNoLegacy path to a GameObject containing the Camera component
includeImageNoInclude the PNG as an MCP image block; false returns metadata and the local image path only
maxImageBytesNoMaximum PNG bytes allowed in the inline MCP image payload

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it discloses the return shape (metadata plus an MCP image block), the mode-specific constraints, and a hard environmental prerequisite (BanterMCPBridge extension installed and Unity Editor running). It omits whether an image is written to disk and where, and any latency or size-failure behavior, which matters for a capture tool that can hit a byte cap.

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?

Three short sentences, front-loaded with the verb and resource, then return shape, then prerequisites. No filler and no repetition of schema detail.

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 seven-parameter, zero-required-parameter tool with no output schema, the description covers what it does, what comes back, and what must be in place first. The remaining gap is failure behavior (what happens if the byte cap is exceeded or no Scene View is open), which an agent would want before calling.

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 every one of the seven parameters is already documented in the schema, including the source enum and the includeImage/maxImageBytes pairing. The description's only added semantic value is linking 'Scene capture' to the need for an open Scene View, which is marginal. 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?

The opening sentence names a specific verb (capture) and both concrete resources (active Game camera, Scene View) plus the output format (PNG). No sibling tool in the catalog does screen capture, so this is unambiguously distinguishable.

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 states the preconditions for each mode: Game capture works in Edit or Play Mode, Scene capture requires an open Scene View. That is a clear operational context, but it does not explicitly frame when to prefer game vs. scene capture (e.g., 'use scene to screenshot editor-only UI'), which is the natural selection decision for this tool.

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