MCPAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

clear_pane_scrollback

Discard a pane’s scrollback, so the next capture_pane returns only what happens next. Use this before running something whose output you want to read cleanly: it is far cheaper than reading past the old output every time. The visible screen is left alone. Delete tmux state; accepts no command payload.

All Rust tools · JSON · Source

Arguments

pane required · string
The `%`-prefixed pane id, as `list_panes` reports it.

Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

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"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": false,
"title": "Clear Pane History"
}
Esc

Type to search.