MCPpre-alphaTools

Choose documentation 3

stable

Current version

stable
English

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

tool MCPstable

show_environment

show_environment( session_id?: string | null, session_name?: string | null, socket_name?: string | null, )
tool [source]

Show tmux environment variables.

Use to inspect tmux environment variables that affect child processes.

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

Arguments#

No other arguments are accepted.

Result#

Returns object

Annotations#

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"properties": {
"session_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Session ID to query environment for."
},
"session_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Session name to query environment for."
},
"socket_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "tmux socket name."
}
},
"type": "object"
}
Output schema
{
"description": "Result of a show_environment call.",
"properties": {
"variables": {
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "boolean"
}
]
},
"description": "Environment variable mapping",
"type": "object"
}
},
"required": [
"variables"
],
"type": "object"
}
Esc

Type to search.

Reference preview Open reference