mcp.src.TmuxTools.select_window
- #[tool_router(router = control_router, vis = "pub(super)")] impl Tmux
Tools #[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(SelectWindow : Parameters<SelectArgs { window, direction }) Window >, ) -> Result<Json<Windows>, ToolArgs Error > -
Move focus to a window, or to the one beside it.