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)
| 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, |