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.RunResult

What a command did.

Description

The command runs in a subshell, so a cd or an export in it does not survive into the next call.

Parameters
  • PaneId (string) – The pane it ran in.

  • ExitStatus (int?) – The shell's exit status, or null when the command did not finish in time.

  • TimedOut (bool) – Whether waiting stopped before completion. The shell command may still be running; inspect the pane and do not retry it.

  • Output (BoundedText) – What the command printed, within the budget.

  • ElapsedSeconds (double) – How long it took.

  • EffectiveTimeoutSeconds (double) – The timeout actually used, after the server's ceiling.

  • LinesMissed (bool) – Whether scrollback dropped output before it could be read.

    Default false

  • AnchorLost (bool) – Whether the pre-command output position could no longer be found.

    Default false

  • Started (bool) – Whether the command was seen to begin. A timeout with this false means the wrapper never ran, usually because the pane was not at an empty, ready shell prompt. The usual "it may still be running" does not apply; inspect the pane before retrying.

    Default true

  • PaneExited (bool) – Whether the pane's program exited before the command reported its status. The run ends then rather than at its timeout, with no exit status.

    Default false

Properties10

RunResult properties
NameTypeDescription
PaneId string The pane it ran in.
ExitStatus int? The shell's exit status, or null when the command did not finish in time.
TimedOut bool Whether waiting stopped before completion. The shell command may still be running; inspect the pane and do not retry it.
Output BoundedText What the command printed, within the budget.
ElapsedSeconds double How long it took.
EffectiveTimeoutSeconds double The timeout actually used, after the server's ceiling.
LinesMissed bool Whether scrollback dropped output before it could be read.
AnchorLost bool Whether the pre-command output position could no longer be found.
Started bool Whether the command was seen to begin. A timeout with this false means the wrapper never ran, usually because the pane was not at an empty, ready shell prompt. The usual "it may still be running" does not apply; inspect the pane before retrying.
PaneExited bool Whether the pane's program exited before the command reported its status. The run ends then rather than at its timeout, with no exit status.
Esc
Search in

Type to search.

Reference previewOpen reference