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

Method dump

unity_cli/api/uitree.py:29–49  ·  view source on GitHub ↗

Dump UI tree or list panels. Args: panel: Panel name to dump. If None, lists all panels. depth: Maximum tree depth (-1 = unlimited). format: Output format ("text" or "json"). Returns: Dictionary containing panel list or tree data.

(
        self,
        panel: str | None = None,
        depth: int = -1,
        format: str = "text",
    )

Source from the content-addressed store, hash-verified

27 params["panel"] = _strip_panel_count(panel)
28
29 def dump(
30 self,
31 panel: str | None = None,
32 depth: int = -1,
33 format: str = "text",
34 ) -> dict[str, Any]:
35 """Dump UI tree or list panels.
36
37 Args:
38 panel: Panel name to dump. If None, lists all panels.
39 depth: Maximum tree depth (-1 = unlimited).
40 format: Output format ("text" or "json").
41
42 Returns:
43 Dictionary containing panel list or tree data.
44 """
45 params: dict[str, Any] = {"action": "dump", "format": format}
46 self._add_panel_param(params, panel)
47 if depth != -1:
48 params["depth"] = depth
49 return self._conn.send_request("uitree", params)
50
51 def query(
52 self,

Calls 2

_add_panel_paramMethod · 0.95
send_requestMethod · 0.80