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_since

#[tool_router(router = observe_router, vis = "pub(super)")] impl TmuxTools #[tool( description = "Read what a pane wrote since the previous call. The first call, with no \ cursor, starts watching and returns a cursor; later calls pass it back \ and receive only what is new, as the raw output stream, not the rendered \ screen: a line redrawn in place repeats; capture_pane shows the screen. \ Use this to follow a pane over several \ turns without re-reading the whole screen. The answer says missed=true \ if the cursor no longer names retained output, including when the pane \ outran the buffer, its live tail was evicted, or the server restarted. \ Starting a tail owns a retained observer until the tail is evicted or \ the server stops.", title = "Read New Pane Output", meta = crate::capability_meta!(Inspect, None, [Observe], [TmuxMetadata, TerminalContent], true, true, { "pane" => [TmuxLookup], "cursor" => [None] }) )] pub async fn capture_since( &self, Parameters(CaptureSinceArgs { pane, cursor }): Parameters<CaptureSinceArgs>, ) -> Result<Json<Since>, ToolError>

Report what a pane has written since the last look.

Guides#

Pages that discuss capture_since.

Esc

Type to search.

Reference previewOpen reference