capture

capture is a command for Claude Code from Alex-Rachel/TEngine. It costs 0 tokens per session (2,866 once invoked), scanned A, original, MIT.

Commands that render a Unity camera, Scene view, or UI Toolkit element as a PNG image. The image can be returned to the agent and optionally saved in the project.

In plain words
What is it for?
Use them to capture game-camera views, the current Scene view, or Unity interface elements for visual checks and saved screenshots.
Why use it?
They let an agent inspect visual output even when it has no direct display of the Unity Editor or running game.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use them to capture game-camera views, the current Scene view, or Unity interface elements for visual checks and saved screenshots.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/alex-rachel/tengine/capture
About the project

TEngine is a Unity framework for building games, providing modules for asynchronous work, hot updates, asset management, configuration tables, and user interfaces. It is for Unity developers and teams making commercial projects across desktop, mobile, web, and WeChat Mini Game targets, with catalogue skills supporting its AI-assisted development workflow.

Alex-Rachel/TEngine · 2,418 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/Alex-Rachel/TEngine

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 capture

README.md
[![agentmods](https://agentmods.dev/badge/commands/alex-rachel/tengine/capture/github.svg)](https://agentmods.dev/commands/alex-rachel/tengine/capture)
Your own site
<a href="https://agentmods.dev/commands/alex-rachel/tengine/capture"><img src="https://agentmods.dev/badge/commands/alex-rachel/tengine/capture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for capture

Your own site · 80×15
<a href="https://agentmods.dev/commands/alex-rachel/tengine/capture"><img src="https://agentmods.dev/badge/commands/alex-rachel/tengine/capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,866 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.02866
Opus 5.5 $0.00000 $0.01146
Sonnet 5.5 $0.00000 $0.00573
Haiku 4.5 $0.00000 $0.00287

Measured 23d ago against content hash 0de667322340, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

capture 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 23d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • capture — 100% identical, 19 lines differ
UnityProject/Packages/com.unity.pipeline/Documentation~/commands/capture.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Capture commands

Commands that render a camera, the Scene View, or a UI Toolkit element to a PNG and return it base64-encoded so an agent can "see" the editor (or a running player) without a display.

capture game_view

Render the game view to a PNG. Returns it inline as base64, unless output-path is set — then the result is path-only (no base64) so agent tool results stay small; pass include-inline-image=true to get both.

source selects what is captured. screen (default) reads the game view's own render target, so the PNG matches what the Game window shows: at its true pixel resolution, independent of OS display scaling, and with the on-screen color tone preserved. In Play Mode that includes Screen Space - Overlay UI (HUDs, menus, damage numbers on overlay canvases); in Edit Mode the capture works the same way and simply contains no overlay UI, because none exists until runtime. screen reads the play mode view last in use: the Game view, or the Device Simulator when that is the one in use. When none is open, screen opens a Game view, leaves it open so later captures read it directly, and the result's message says so. A Game view in a background tab is drawn once and the tab that was in front is put back; keyboard focus never moves. The Game view is repainted before every read, so a capture shows the scene as it is now, in Edit Mode too. This works in batchmode too: a Game view opened there renders the game, overlay UI included, and keeps rendering every frame. In Play Mode a newly opened view may not have rendered a frame yet: an omitted source then captures a camera for this call, and an explicit source=screen fails; either way, capturing again reads the screen.

camera renders a single camera off-screen instead. It works without a Game view window and lets you target a specific camera by name, but overlay canvases composite straight to the screen and never render through a camera. With a Scriptable Render Pipeline (URP or HDRP), the capture draws them on top itself with ScriptableRenderContext.DrawUIOverlay. overlay controls this: auto (default) draws them only for a camera that renders to the screen, never over a camera that feeds a render texture (a minimap, say); true draws them for any camera; false never. The Built-in Render Pipeline cannot draw them into a camera capture: overlay=true then says so in the result's message. When the scene has overlay UI to draw, the camera renders at the Game view's size, where that UI is laid out, and the image is then scaled to width × height, so the UI matches the game; as with screen, a different aspect ratio stretches the image. Without overlay UI the camera renders at width × height directly. Passing camera=<name> without a source selects camera for you, so a named camera is never silently ignored by a screen capture.

Read the full file on GitHub · 97 lines

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. 23d ago Changed · +44 lines 0de667322340
  2. 2mo ago First seen · 53 lines · 0 tokens per session scan A 77d480c9e2b0

Subscribe to this mod's changes

capture is a command published in the GitHub repository Alex-Rachel/TEngine (2,418 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,866 tokens. 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-09-23.

Related

capture compared with commands from other repositories

capture next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
captureAlex-Rachel/TEngineCommand2.4k12d agoMITA0Claude Code
godotHermeticOrmus/LibreGameDev-Claude-CodeCommand52mo agoMITA32Claude Code
multiplayerHermeticOrmus/LibreGameDev-Claude-CodeCommand52mo agoMITA21Claude Code
unityHermeticOrmus/LibreGameDev-Claude-CodeCommand52mo agoMITA24Claude Code
playtestHermeticOrmus/LibreGameDev-Claude-CodeCommand52mo agoMITA17Claude Code
game-uiHermeticOrmus/LibreGameDev-Claude-CodeCommand52mo agoMITA17Claude Code
level-designHermeticOrmus/LibreGameDev-Claude-CodeCommand52mo agoMITA18Claude Code