mcp.src.TmuxTools.capture_pane
- #[tool_router(router = inspect_router, vis = "pub(super)")] impl Tmux
Tools #[tool( description = "Read a pane's contents. Reads the visible screen by default; set history \ to reach output that has scrolled off, or give a start and end line. \ Set last_command to get only what the last command printed, which is \ usually what you want and is far shorter -- it needs tmux 3.7 and a \ shell that marks its prompts, and says so when it cannot.", title = "Read Pane Contents", meta = crate::capability_meta!(Inspect, None, [Observe], [TmuxMetadata, TerminalContent], true, true, { "pane" => [TmuxLookup], "history" => [None], "last_command" => [None], "start" => [TmuxState], "end" => [TmuxState] }) )] pub async fn capture_pane( &self, Parameters(CapturePane : Parameters<CaptureArgs { pane, history, last _command, start, end, }) Pane >, ) -> Result<Json<Capture>, ToolArgs Error > -
Read one pane's contents.
Guides#
Pages that discuss capture_pane.