Merge pull request #46 from justinpbarnett/bugfix/get_scene_info-returns
added return docs for get_scene_infomain
commit
8ab7d5fe2f
|
|
@ -8,7 +8,13 @@ def register_scene_tools(mcp: FastMCP):
|
||||||
|
|
||||||
@mcp.tool()
|
@mcp.tool()
|
||||||
def get_scene_info(ctx: Context) -> str:
|
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:
|
try:
|
||||||
unity = get_unity_connection()
|
unity = get_unity_connection()
|
||||||
result = unity.send_command("GET_SCENE_INFO")
|
result = unity.send_command("GET_SCENE_INFO")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue