MCPconceptTools

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

tool MCP

get_tmux_variables

get_tmux_variables( names: Array<string>, paneId?: string | null, )

Read configured tmux commands; accepts no client-supplied executable input. Returned values may contain executable configuration. Expand named tmux format variables for a pane, such as session_name or window_width. Use it for fields nothing else answers; get_pane_info already returns the common ones, and show_option reads configuration rather than live state.

MCP request method
tools/call Send get_tmux_variables as the tool name, with the arguments below.
Wraps
LibTmux.Pane.DisplayMessageAsyncThe library call this tool makes: src/LibTmux.Mcp/Connection/TmuxTargets.cs:424.

Arguments

  • names (Array<string>)

    Variable names such as session_name, without #{…}. Between 1 and 64 names, each at most 64 letters, digits and underscores.

  • paneId? = null (string | null)

    A pane id used as the lookup context. Omit for this server’s own pane, or else the one the first session shows.

No other arguments are accepted.

Result

Returns Record<string, string>

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"Get tmux variables"

Capability

Toolset
Inspect Request tmux state and terminal output.
Process reach
none
tmux effects
observe

Every C# tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.

Protocol data

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"properties": {
"names": {
"description": "Variable names such as session_name, without #{...}. Between 1 and 64 names, each at most 64 letters, digits and underscores.",
"items": {
"type": "string"
},
"type": "array"
},
"paneId": {
"default": null,
"description": "A pane id used as the lookup context. Omit for this server's own pane, or else the one the first session shows.",
"type": [
"string",
"null"
]
}
},
"required": [
"names"
],
"type": "object"
}
Output schema
{
"additionalProperties": {
"type": "string"
},
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference