MCPAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

show_environment

Read the tmux environment; accepts no client-supplied executable input. Returned values may contain secrets. Reads the environment tmux passes to processes.

All Go tools · JSON · Source

Arguments

session optional · string
a session name; omit for the only session

Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema
{
"additionalProperties": false,
"properties": {
"session": {
"description": "a session name; omit for the only session",
"type": "string"
}
},
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"sessionName": {
"type": "string"
},
"truncated": {
"type": "boolean"
},
"truncatedBytes": {
"type": "integer"
},
"truncatedLines": {
"type": "integer"
},
"valuesWithheld": {
"type": "boolean"
},
"variables": {
"items": {
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"removed": {
"type": "boolean"
},
"scope": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"name",
"scope"
],
"type": "object"
},
"type": [
"array"
]
}
},
"required": [
"sessionName",
"variables",
"truncated"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"openWorldHint": true,
"title": "Show tmux environment"
}
Esc

Type to search.