Skip to content

Commit 2ea5cfa

Browse files
committed
feat: clarify script management workflow in system prompt
- Expanded guidance to include scripts created by any tool, not just manage_script - Added "etc" to tools examples for better clarity
1 parent 932703d commit 2ea5cfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MCPForUnity/UnityMcpServer~/src/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ def _emit_startup():
165165
166166
Resources vs Tools:
167167
- Use RESOURCES to read editor state (editor_state, project_info, project_tags, tests, etc)
168-
- Use TOOLS to perform actions and mutations (manage_editor for play mode control, tag/layer management)
168+
- Use TOOLS to perform actions and mutations (manage_editor for play mode control, tag/layer management, etc)
169169
- Always check related resources before modifying the engine state with tools
170170
171171
Script Management:
172-
1. After creating or modifying scripts with `manage_script`, ALWAYS call `reload_domain` immediately
172+
1. After creating or modifying scripts (by your own tools or the `manage_script` tool), ALWAYS call `reload_domain` immediately
173173
2. Wait for Unity to recompile (domain reload is asynchronous) by checking the `editor_state` resource
174174
3. Use `read_console` to check for compilation errors before proceeding
175175
4. Only after successful compilation can new components/types be used

0 commit comments

Comments
 (0)