AGENT SKILL

Unity 游戏视图截图

screenshot-game-view

从 Unity 编辑器 Game 视图截取屏幕截图并以图片形式返回。通过 Unity Editor API 直接读取 Game 视图自身的渲染纹理。图片尺寸与当前 Game 视图分辨率一致。直接返回图片供 LLM 进行视觉检查。

使用场景游戏开发
License 许可
MIT
所属仓库
devwinsoft/devian
最近更新
2026-04-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
screenshot-game-view
description
Captures a screenshot from the Unity Editor Game View and returns it as an image. Reads the Game View's own render texture directly via the Unity Editor API. The image size matches the current Game View resolution. Returns the image directly for visual inspection by the LLM.

02 资源文件 7

03 SKILL.md 正文

Screenshot / Game View

Captures a screenshot from the Unity Editor Game View and returns it as an image. Reads the Game View's own render texture directly via the Unity Editor API. The image size matches the current Game View resolution. Returns the image directly for visual inspection by the LLM.

How to Call

HTTP API (Direct Tool Execution)

Execute this tool directly via the MCP Plugin HTTP API:

curl -X POST http://localhost:50187/api/tools/screenshot-game-view \
  -H "Content-Type: application/json" \
  -d '{}'

With Authorization (if required)

curl -X POST http://localhost:50187/api/tools/screenshot-game-view \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{}'

The token is stored in the file: UserSettings/AI-Game-Developer-Config.json Using the format: "token": "YOUR_TOKEN"

Input

This tool takes no input parameters.

Input JSON Schema

{
  "type": "object"
}

Output

This tool does not return structured output.

04 同仓库更多 Skills