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_environment

show_environment( name?: string | null, session?: string | null, )

Read the tmux environment; accepts no client-supplied executable input. A listing answers names without values, and a named variable is still withheld when the name reads as a credential. Read what a NEW pane will inherit, at the server or session level — not what an already-running shell has.

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

Arguments

  • name? = null (string | null)

    One variable name, which answers its value. Omit for every name with hasValue instead of values.

  • session? = null (string | null)

    A session id or name. Omit for the server environment.

No other arguments are accepted.

Result

Returns object

Annotations

Advertised by the server

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

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": {
"default": null,
"description": "One variable name, which answers its value. Omit for every name with hasValue instead of values.",
"type": [
"string",
"null"
]
},
"session": {
"default": null,
"description": "A session id or name. Omit for the server environment.",
"type": [
"string",
"null"
]
}
},
"type": "object"
}
Output schema
{
"properties": {
"result": {
"items": {
"properties": {
"hasValue": {
"type": "boolean"
},
"isRemoved": {
"type": "boolean"
},
"name": {
"type": "string"
},
"value": {
"type": [
"string",
"null"
]
},
"withheld": {
"type": "boolean"
}
},
"required": [
"name",
"value",
"isRemoved",
"hasValue",
"withheld"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"result"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference