unity-screenshot

unity-screenshot is a command for Claude Code from akiojin/unity-mcp-server. It costs 11 tokens per session (493 once invoked), scanned A, original, MIT.

A command for capturing images of Unity Editor views. It can capture the Game view, the Scene view, or an Explorer view focused on a selected game object.

In plain words
What is it for?
Use it to capture the player's Game view, document or inspect a Scene view, or frame a named game object in Explorer mode.
Why use it?
It provides visual snapshots for checking a game's output, inspecting a scene, or showing a specific object to a coding agent.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/akiojin/unity-mcp-server/unity-screenshot
Clone the repo
git clone --depth 1 https://github.com/akiojin/unity-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for unity-screenshot

README.md
[![agentmods](https://agentmods.dev/badge/commands/akiojin/unity-mcp-server/unity-screenshot.svg)](https://agentmods.dev/commands/akiojin/unity-mcp-server/unity-screenshot)
Your own site
<a href="https://agentmods.dev/commands/akiojin/unity-mcp-server/unity-screenshot"><img src="https://agentmods.dev/badge/commands/akiojin/unity-mcp-server/unity-screenshot.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 493 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00011 $0.00493
Opus 5 $0.00005 $0.00246
Sonnet 5 $0.00002 $0.00099
Haiku 4.5 $0.00001 $0.00049

Measured 3d ago against content hash f753fd842a6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

unity-screenshot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude-plugin/plugins/unity-mcp-server/commands/unity-screenshot.md · 97 lines

What it actually says

Unity Screenshot Capture

Capture screenshots from various Unity Editor views.

Capture Modes

1. Game View (game)

Captures the Game View (player's perspective).

mcp__unity-mcp-server__capture_screenshot({
  captureMode: "game",
  encodeAsBase64: true
})

2. Scene View (scene)

Captures the editor's Scene View.

mcp__unity-mcp-server__capture_screenshot({
  captureMode: "scene",
  encodeAsBase64: true
})

3. Explorer Mode (explorer)

AI/LLM-optimized view that focuses on a specific GameObject.

mcp__unity-mcp-server__capture_screenshot({
  captureMode: "explorer",
  encodeAsBase64: true,
  explorerSettings: {
    target: {
      type: "gameObject",
      name: "Player"
    },
    camera: {
      autoFrame: true,
      padding: 0.2
    }
  }
})

Usage Examples

Basic Usage

/unity-screenshot

Captures the Game View screenshot.

Capture Scene View

/unity-screenshot scene

Focus on Specific GameObject

/unity-screenshot explorer Player

Frames and captures the Player GameObject.

Options

Explorer Mode Settings

Setting Description
target.type gameObject, tag, area, position
target.name Target GameObject name
camera.autoFrame Auto-framing (default: true)
camera.padding Framing padding (0-1, default: 0.2)
display.showGizmos Show gizmos (default: false)
display.showColliders Show colliders (default: false)

Output

Screenshots are saved to .unity/capture/ directory. Base64-encoded image data is also returned.

Filename format: image_<mode>_<timestamp>.png

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 97 lines · 11 tokens per session scan A f753fd842a6f

Subscribe to this mod's changes

unity-screenshot is a command published in the GitHub repository akiojin/unity-mcp-server (34 stars, last pushed 3d ago), licensed MIT. It adds 11 tokens to every session and 493 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.