tmux_clear_history
Clears a tmux pane's scrollback history to ensure subsequent capture starts from a clean slate, preventing previous output from bleeding into the captured range.
Instructions
Wipe a pane's scrollback history (clear-history -t pane).
Use this before a tmux_send_keys / tmux_run so a subsequent
tmux_capture_pane(start=...) starts from a clean slate, without the
previous output bleeding into the captured range. It clears the
scrollback buffer only — the visible screen is untouched.
Returns {"cleared": True, "pane": target_pane}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_pane | No | ||
| target | No |