MCPpre-alphaTools

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

In development Server behavior and tool contracts may change. Tool availability depends on the server configuration.

tool MCP

show_environment

show_environment( session_id?: string | null, session_name?: string | null, socket_name?: string | null, )

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.
Wraps
libtmux.common.EnvironmentMixin.show_environmentThe library call this tool makes: src/libtmux_mcp/tools/env_tools.py:55.

Arguments

No other arguments are accepted.

Result

Returns object

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Capability

Toolset
Inspect Request tmux state and terminal output.

Every Python 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": {
"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
Search in

Type to search.

Reference previewOpen reference