added return docs for get_scene_info

main
Justin Barnett 2025-03-24 09:54:43 -04:00
parent 0c7fc88911
commit 51626309ba
1 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,13 @@ def register_scene_tools(mcp: FastMCP):
@mcp.tool()
def get_scene_info(ctx: Context) -> str:
"""Retrieve detailed info about the current Unity scene."""
"""Retrieve detailed info about the current Unity scene.
Returns:
str: JSON string containing scene information including:
- sceneName: Name of the current scene
- rootObjects: List of root GameObject names in the scene
"""
try:
unity = get_unity_connection()
result = unity.send_command("GET_SCENE_INFO")