mcp.src.TmuxTools.search_panes
- #[tool_router(router = inspect_router, vis = "pub(super)")] impl Tmux
Tools #[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(SearchPanes : Parameters<SearchArgs { pattern, regex, match _case, history, session, window, }) Panes >, ) -> Result<Json<Matches>, ToolArgs Error > -
Find which panes are showing something.