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.

tool MCPlatest

list_sessions

list_sessions()
tool [source]

Inspect tmux metadata; accepts no client-supplied executable input. Lists sessions on the pinned tmux server.

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

Arguments#

No named arguments.

Result#

Returns object

No other properties are accepted.

Annotations#

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"List sessions"

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"serverNote": {
"type": "string"
},
"sessions": {
"items": {
"additionalProperties": false,
"properties": {
"attached": {
"type": "integer"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"windows": {
"type": "integer"
}
},
"required": [
"id",
"name",
"windows",
"attached"
],
"type": "object"
},
"type": [
"array"
]
},
"skipped": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"required": [
"sessions",
"total"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference