Merge pull request #46 from justinpbarnett/bugfix/get_scene_info-returns

added return docs for get_scene_info
main
Justin P Barnett 2025-03-24 09:55:20 -04:00 committed by GitHub
commit 8ab7d5fe2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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")