MCPconceptAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

mcp.src.TmuxTools.select_layout

#[tool_router(router = control_router, vis = "pub(super)")] impl TmuxTools #[tool( description = "Rearrange a window's panes using a saved tmux layout or a named \ layout and its unique abbreviation. Names follow the running \ daemon's version; mirrored main layouts require tmux 3.5. \ Invalid syntax is refused before window lookup. Return the \ saved layout tmux actually applied.", title = "Arrange Window Panes", meta = crate::capability_meta!(Manage, None, [Change], [TmuxMetadata], true, true, { "window" => [TmuxLookup], "layout" => [TmuxState] }; idempotent) )] pub async fn select_layout( &self, Parameters(SelectLayoutArgs { window, layout }): Parameters<SelectLayoutArgs>, ) -> Result<Json<Layout>, ToolError>

Arrange a window's panes.

Guides#

Pages that discuss select_layout.

Esc

Type to search.

Reference previewOpen reference