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, )

Read configured tmux commands; accepts no client-supplied executable input. Returned values may contain executable configuration. Resolve validated tmux variable names without accepting raw format syntax.

MCP request method
tools/call Send get_tmux_variables as the tool name, with the arguments below.

Arguments

  • names (Array<string>)

    Variable names to resolve, such as “pane_current_command” — bare names, not #{…} format syntax.

    minItems
    1
    maxItems
    32
  • paneId? (string)

    Stable pane id, e.g. %1.

    pattern
    "^%\\d+$"

Result

Returns object

No other properties are accepted.

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Capability

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

Every TypeScript 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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"names": {
"description": "Variable names to resolve, such as \"pane_current_command\" — bare names, not `#{…}` format syntax.",
"items": {
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
"type": "string"
},
"maxItems": 32,
"minItems": 1,
"type": "array",
"x-libtmux-tmux-format": "validated-variable-name"
},
"paneId": {
"description": "Stable pane id, e.g. %1.",
"pattern": "^%\\d+$",
"type": "string"
}
},
"required": [
"names"
],
"type": "object"
}
Output schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"values"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference