MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / execute

Method execute

unity_cli/api/menu.py:17–29  ·  view source on GitHub ↗

Execute Unity menu item. Args: path: Menu item path (e.g., "Edit/Play", "Assets/Refresh") Returns: Dictionary with: - success: bool - Whether the menu item was executed - path: str - The menu path - message: str - Result m

(self, path: str)

Source from the content-addressed store, hash-verified

15 self._conn = conn
16
17 def execute(self, path: str) -> dict[str, Any]:
18 """Execute Unity menu item.
19
20 Args:
21 path: Menu item path (e.g., "Edit/Play", "Assets/Refresh")
22
23 Returns:
24 Dictionary with:
25 - success: bool - Whether the menu item was executed
26 - path: str - The menu path
27 - message: str - Result message
28 """
29 return self._conn.send_request("menu", {"action": "execute", "path": path})
30
31 def list(
32 self,

Callers 6

menu_execFunction · 0.80
prompt_editor_selectionFunction · 0.80
prompt_confirmFunction · 0.80

Calls 1

send_requestMethod · 0.80