clear_pane_scrollback
-
Discard a pane’s retained scrollback. The visible screen is left alone and remains in subsequent capture_pane results. Use capture_since to follow later output. Delete tmux state; accepts no command payload.
- MCP request method
tools/callSendclear_pane_scrollbackas the tool name, with the arguments below.- Wraps
pane.Pane.clear_historyThe library call this tool makes:crates/tmux-mcp/src/tools/control.rs:599.
Arguments
-
The
%-prefixed pane id, aslist_panesreports it.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHinttrueopenWorldHintfalsereadOnlyHintfalsetitle"Clear Pane History"
Capability
- Toolset
- Teardown Delete tmux objects or retained scrollback. Not reversible.
- Process reach
none- tmux effects
delete
The capability row states what this tool reads, changes and reaches; the annotations are as the server advertises them.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"$schema": "https://json-schema.org/draft/2020-12/schema","additionalProperties": false,"properties": {"pane": {"description": "The `%`-prefixed pane id, as `list_panes` reports it.","type": "string"}},"required": ["pane"],"type": "object"}Output schema
{"$schema": "https://json-schema.org/draft/2020-12/schema","properties": {"pane": {"description": "The pane that changed.","type": "string"}},"required": ["pane"],"type": "object"}