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

#[tool_router(router = inspect_router, vis = "pub(super)")] impl TmuxTools #[tool( description = "Search what panes are displaying with Rust's linear-time regex engine. \ Accept at most 4,096 pattern bytes; search at most 64 panes, 8,192 lines, \ and 1 MiB; spend at most 250 ms matching and five seconds capturing. \ Report the pane and line of \ every match. Use this to find where something is -- which pane has \ the failing test, which one printed the error -- instead of capturing \ panes one at a time. Searches the visible screen by default; set \ history to include scrollback.", title = "Search Pane Contents", meta = crate::capability_meta!(Inspect, None, [Observe], [TmuxMetadata, TerminalContent], true, true, { "pattern" => [Regex], "regex" => [None], "match_case" => [None], "history" => [None], "session" => [TmuxLookup], "window" => [TmuxLookup] }) )] pub async fn search_panes( &self, Parameters(SearchPanesArgs { pattern, regex, match_case, history, session, window, }): Parameters<SearchPanesArgs>, ) -> Result<Json<Matches>, ToolError>

Find which panes are showing something.

Esc

Type to search.

Reference previewOpen reference