Skip to main content

Module http_layout

Module http_layout 

Source
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ยง

ListTabsQuery ๐Ÿ”’

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 (explicit workspace_id, or the callerโ€™s own via block_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 โ€” make tab_id the active tab in its workspace. Routes through workspace.SetActiveTab.
handle_tab_new ๐Ÿ”’
POST /api/v1/tab/new โ€” create (and activate) a new tab in the callerโ€™s workspace (or an explicit workspace_id). Routes through workspace.CreateTab.
handle_window_focus ๐Ÿ”’
POST /api/v1/window/focus โ€” bring a window to the foreground. Defaults to the callerโ€™s own window. Routes through client.FocusWindow.