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]

Lists sessions on the pinned tmux server. 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 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": {
"count": {
"type": "integer"
},
"note": {
"type": "string"
},
"sessions": {
"items": {
"additionalProperties": false,
"properties": {
"attached": {
"type": "boolean"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"window_names": {
"items": {
"type": "string"
},
"type": "array"
},
"windows": {
"type": "integer"
}
},
"required": [
"id",
"name",
"attached",
"windows",
"window_names"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"count",
"sessions"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference