コンテンツにスキップ

manage_playmode

Manage Unity Play Mode: play (enter), stop (exit), pause, resume, step one frame, or status.

分類: Play モード

名前 型 必須 既定値 説明
action string 必須 Action to perform: play (enter play mode), stop (exit play mode), pause, resume, step (single frame), status (get current state) 値: play, stop, pause, resume, step, status
auto_compile boolean false If true, compile project before entering play mode (recommended for automation). Only applies to ‘play’ action.
wait_for_ready boolean false If true, wait until play mode is fully ready before returning. Use timeout_seconds to control max wait time (default 30s).
timeout_seconds integer 30 Maximum time to wait in seconds when wait_for_ready=true (default: 30, max: 120)

必須の引数だけを入れています。ほかは必要に応じて足してください。

{
"name": "manage_playmode",
"arguments": {
"action": "play"
}
}

Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "manage_playmode", "args": { … }} の形で呼びます。SuperSave モードを参照。

Assets/NanoraUnityMCP/Editor/Tools/ManagePlayModeTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。