Skip to content

pane.*

Lower-level pane-tree access. Most workflows use system.tree instead, which folds workspaces / panes / surfaces into one structure.

MethodParamsResult
pane.list{ workspaceId?: string }{ panes: PaneNode[] }

PaneNode is the binary-tree representation:

type PaneNode =
| { kind: "leaf"; surfaceId: string; surfaceType: "terminal" | "browser" | "agent" | "telegram" }
| { kind: "split"; direction: "horizontal" | "vertical"; ratio: number; children: [PaneNode, PaneNode] };

workspaceId defaults to the current workspace.

  • system.tree — most agent / scripting use cases. Gives you everything in one call.
  • pane.list — when you specifically want the binary-tree structure for one workspace (layout-rendering scenarios).