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

#[tool_router(router = inspect_router, vis = "pub(super)")] impl TmuxTools #[tool( description = "Read pane content with cursor position, mode state, and scroll \ position in one reply. The state query and capture are separate, \ so the result is not atomic. Prefer this over capture_pane when \ you need to reason about where the pane is rather than only what \ it says -- a cursor at column zero on a fresh line is a shell \ waiting, and a pane in a mode may route keys to tmux instead of \ the workload.", title = "Snapshot Pane State", meta = crate::capability_meta!(Inspect, None, [Observe], [TmuxMetadata, TerminalContent], true, true, { "pane" => [TmuxLookup], "max_lines" => [None], "history" => [None] }; always_load) )] pub async fn snapshot_pane( &self, Parameters(SnapshotArgs { pane, max_lines, history, }): Parameters<SnapshotArgs>, ) -> Result<Json<Snapshot>, ToolError>

Report pane state and bounded content in one answer.

Guides#

Pages that discuss snapshot_pane.

Esc

Type to search.

Reference previewOpen reference