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

#[tool_router(router = inspect_router, vis = "pub(super)")] impl TmuxTools #[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(CapturePaneArgs { pane, history, last_command, start, end, }): Parameters<CapturePaneArgs>, ) -> Result<Json<Capture>, ToolError>

Read one pane's contents.

Guides#

Pages that discuss capture_pane.

Esc

Type to search.

Reference previewOpen reference