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

TmuxTools

Swift
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift

API reference · Markdown

struct TmuxTools : struct TmuxTools
struct [source]
struct [source]
struct TmuxTools

The tmux tools an MCP client can call.

This is the layer that puts LibTmux across a process boundary, which is what a filter expression was designed for: a client sends the expression as data and the tool evaluates it here, rather than the client asking for everything and filtering at home.

Discussed in Swift MCP API

Members

authority

authority : let authority: ToolAuthority
property [source]
property [source]
authority

The authority shared by tool listing and invocation.

waitCeiling

waitCeiling : let waitCeiling: Duration
property [source]
property [source]
waitCeiling

The ceiling every wait is clamped to.

What an unbounded wait costs is not the transport — calls are served concurrently — but the caller's turn: it picks the wrong pattern once and has no way to change its mind mid-call. A ceiling makes that mistake cheap and repeatable instead of terminal.

provenance

provenance : let provenance: ServerProvenance
property [source]
property [source]
provenance

init(server:authority:waitCeiling:caller:provenance:)

init(server:authority:waitCeiling:caller:provenance:) ( server : Server , authority : ToolAuthority , waitCeiling : Duration , caller : CallerIdentity? , provenance : ServerProvenance )
method [source]
method [source]
init(server:authority:waitCeiling:caller:provenance:)

Creates a tool set with explicit authority.

visibleDefinitions

visibleDefinitions : var visibleDefinitions: [ToolDefinition]
property [source]
property [source]
visibleDefinitions

The tools visible under this server's authority.

Discussed in Swift MCP API

call(_:reporting:)

call(_:reporting:) ( request : ToolCall , reporting : ProgressReporter ) → ToolOutcome
methodasync [source]
methodasync [source]
call(_:reporting:)

Runs a tool and returns its result.

progress is how a blocking tool says it is still running. It is silent unless the client asked to be told.

Raises

Discussed in Swift MCP API

definitions

definitions : static let definitions: [ToolDefinition]
propertystatic [source]
propertystatic [source]
definitions

The one authoritative public tool registry, in protocol order.

Esc

Type to search.