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_window

#[tool_router(router = control_router, vis = "pub(super)")] impl TmuxTools #[tool( description = "Select a window, making it its session's active window. Give a \ direction to move relative to it instead: next and previous step \ through the session in index order, and last returns to the \ previously active window.", title = "Select Window", meta = crate::capability_meta!(Manage, None, [Change], [TmuxMetadata], true, true, { "window" => [TmuxLookup], "direction" => [TmuxState] }) )] pub async fn select_window( &self, Parameters(SelectWindowArgs { window, direction }): Parameters<SelectWindowArgs>, ) -> Result<Json<Windows>, ToolError>

Move focus to a window, or to the one beside it.

Esc

Type to search.

Reference previewOpen reference