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

show_option

show_option( name: string, paneId?: string | null, scope?: "Server" | "Session" | "Window" | "Pane", )

Read configured tmux commands; accepts no client-supplied executable input. Returned values may contain executable configuration. Read tmux options at the server, session, window or pane level. Values set at a wider scope are included and marked inherited, because that is where nearly all tmux configuration lives. Omit the name to list them all. Reading history-limit before a long tail tells you how much output the pane can hold before it starts dropping lines.

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

Arguments

  • name (string)

    The option name.

  • paneId? = null (string | null)

    The pane whose scope is read. Omit for this server’s own pane, or else the one the first session shows.

  • scope? = "Pane" ("Server" | "Session" | "Window" | "Pane")

    Server, Session, Window, or Pane.

No other arguments are accepted.

Result

Returns object

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"Show option"

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": {
"name": {
"description": "The option name.",
"type": "string"
},
"paneId": {
"default": null,
"description": "The pane whose scope is read. Omit for this server's own pane, or else the one the first session shows.",
"type": [
"string",
"null"
]
},
"scope": {
"default": "Pane",
"description": "Server, Session, Window, or Pane.",
"enum": [
"Server",
"Session",
"Window",
"Pane"
],
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
}
Output schema
{
"properties": {
"result": {
"items": {
"properties": {
"inherited": {
"type": "boolean"
},
"name": {
"type": "string"
},
"scope": {
"enum": [
"Server",
"Session",
"Window",
"Pane"
],
"type": "string"
},
"value": {
"type": [
"string",
"null"
]
}
},
"required": [
"name",
"value",
"scope",
"inherited"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"result"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference