Expand description
Layout, window, workspace and tab queries and actions. Split out of server/mod.rs unchanged (SPEC_LARGE_FILE_MODULE_ANALYSIS_2026_09_30.md ยง4.1).
Structsยง
- List
Tabs ๐Query
Functionsยง
- handle_
layout ๐ GET /api/v1/layoutโ read-only window โ workspace โ tab โ pane tree. The floating panes agents opened say so and where they are (pane_place::report_floaters); the docked panes in the windowโs showing tab say how big they are drawn (pane_measure::report_docked).- handle_
list_ ๐tabs GET /api/v1/tabsโ flat list of tabs, optionally scoped to a workspace (explicitworkspace_id, or the callerโs own viablock_id).- handle_
list_ ๐windows GET /api/v1/windowsโ flat list of windows.- handle_
list_ ๐workspaces GET /api/v1/workspacesโ flat list of workspaces.- handle_
tab_ ๐activate POST /api/v1/tab/activateโ maketab_idthe active tab in its workspace. Routes throughworkspace.SetActiveTab.- handle_
tab_ ๐new POST /api/v1/tab/newโ create (and activate) a new tab in the callerโs workspace (or an explicitworkspace_id). Routes throughworkspace.CreateTab.- handle_
window_ ๐focus POST /api/v1/window/focusโ bring a window to the foreground. Defaults to the callerโs own window. Routes throughclient.FocusWindow.