MCPconceptAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

LibTmux.Mcp.TailResult

What a pane has printed since it was last read.

Description

This is the tool for watching a pane across turns. It answers only what is new, so the tenth read of a busy pane costs what the first one did rather than ten times as much.

Parameters
  • PaneId (string) – The pane that was read.

  • Content (BoundedText) – The new text, within the budget.

  • Cursor (string) – Where this read finished. Pass it to the next call to continue from here. It is opaque; do not build one.

  • LinesMissed (bool) – Whether scrollback dropped lines this read never saw. tmux frees the oldest history once history-limit is reached, so a pane that printed more than that between two reads loses the lines in between for good.

  • AnchorLost (bool) – Whether the previous position could no longer be found, so the read started from what is visible now rather than from where it left off.

Properties5

TailResult properties
NameTypeDescription
PaneId string The pane that was read.
Content BoundedText The new text, within the budget.
Cursor string Where this read finished. Pass it to the next call to continue from here. It is opaque; do not build one.
LinesMissed bool Whether scrollback dropped lines this read never saw. tmux frees the oldest history once history-limit is reached, so a pane that printed more than that between two reads loses the lines in between for good.
AnchorLost bool Whether the previous position could no longer be found, so the read started from what is visible now rather than from where it left off.
Esc
Search in

Type to search.

Reference previewOpen reference