kitty_dump_scrollback
Dump a terminal window's full scrollback to a temp file and read it back with pagination, avoiding large single responses.
Instructions
Dump a window's full scrollback to a temp file and read it back with pagination. Solves the problem of scrollback buffers too large to return in a single response. First call dumps and returns a page; follow-up calls with file_path paginate through the dump without re-fetching from kitty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ansi | No | Include ANSI formatting/color codes. | |
| limit | No | Maximum lines to return per page. Default: 5000. | |
| match | No | Window match expression (e.g. "title:my_term"). | |
| extent | No | What text to capture. Default: "all" (screen + full scrollback). | |
| offset | No | Line offset to start reading from. Default: 0 (beginning). | |
| file_path | No | Path to a temp file from a previous dump_scrollback call. If provided, reads from this file instead of re-dumping, enabling efficient pagination. |