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]

List stable session IDs, names, paths, and client counts. Inspect tmux metadata; accepts no client-supplied executable input.

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 tmux sessions"

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"properties": {},
"required": [],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"sessions": {
"items": {
"additionalProperties": false,
"properties": {
"attached": {
"type": "boolean"
},
"client_count": {
"minimum": 0,
"type": "integer"
},
"id": {
"pattern": "^\\$[0-9]+$",
"type": "string"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"window_count": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"attached",
"client_count",
"id",
"name",
"path",
"window_count"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"sessions"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference