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.
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.