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

list_sessions

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

All C++ tools · JSON · Source

Arguments

This tool has no top-level named arguments. Consult its schema below.

Schemas

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

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"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "List tmux sessions"
}
Esc

Type to search.