MCPpre-alphaAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

libtmux_mcp.models.RunCommandResult

class libtmux_mcp.models.RunCommandResult
Bases:
  • BaseModel

Result of running a shell command in a pane.

Members

pane_id : str = Field(description="Pane ID that received the command")
exit_status : int | None = Field( default=None, description="Shell exit status, or None when the command timed out", )

Discussed in Python MCP topics

timed_out : bool = Field(description="True when the wait timed out")

Discussed in Python MCP topics

elapsed_seconds : float = Field(description="Time spent waiting in seconds")
output : list[str] = Field( default_factory=list, description="Tail-preserved pane output after the wait completes", )

Discussed in Python MCP topics

output_truncated : bool = Field( default=False, description="True when output was tail-preserved to stay within max_lines", )
output_truncated_lines : int = Field( default=0, description="Number of pane lines dropped from the head when truncating", )
effective_timeout : float = Field( description=( "Seconds actually enforced for command completion. Server " "policy caps the requested ``timeout``; compare against what " "you passed to see a clamp." ) )
Esc

Type to search.

Reference preview Open reference