clear_pane
-
Clear the contents of a tmux pane.
Use before a fresh run_command call or raw-input observation workflow when prior scrollback would make the result harder to inspect.
- MCP request method
tools/callSendclear_paneas the tool name, with the arguments below.- Wraps
libtmux.Pane.resetThe library call this tool makes:src/libtmux_mcp/tools/pane_tools/io.py:711.
Arguments
-
pane_id? =null(string | null)Pane ID (e.g. ‘%1’).
-
session_id? =null(string | null)Session ID (e.g. ‘$1’) for pane resolution.
-
session_name? =null(string | null)Session name for pane resolution.
-
socket_name? =null(string | null)tmux socket name.
-
window_id? =null(string | null)Window ID for pane resolution.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalse
Capability
- Toolset
- Teardown Delete tmux objects or retained scrollback. Not reversible.
Every Python tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"pane_id": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Pane ID (e.g. '%1')."},"session_id": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Session ID (e.g. '$1') for pane resolution."},"session_name": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Session name for pane resolution."},"socket_name": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "tmux socket name."},"window_id": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Window ID for pane resolution."}},"type": "object"}Output schema
{"properties": {"result": {"type": "string"}},"required": ["result"],"type": "object","x-fastmcp-wrap-result": true}