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.

get_session_info

Inspect tmux metadata; accepts no client-supplied executable input. Returns metadata for one session.

All Go tools · JSON · Source

Arguments

session_id required · string
the session id, such as $1

Schemas

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

Input schema
{
"additionalProperties": false,
"properties": {
"session_id": {
"description": "the session id, such as $1",
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"activeWindowId": {
"type": "string"
},
"created": {
"type": "string"
},
"path": {
"type": "string"
},
"session": {
"additionalProperties": false,
"properties": {
"attached": {
"type": "integer"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"windows": {
"type": "integer"
}
},
"required": [
"id",
"name",
"windows",
"attached"
],
"type": "object"
},
"windows": {
"items": {
"additionalProperties": false,
"properties": {
"active": {
"type": "boolean"
},
"id": {
"type": "string"
},
"index": {
"type": "integer"
},
"name": {
"type": "string"
},
"panes": {
"type": "integer"
},
"session": {
"type": "string"
}
},
"required": [
"id",
"session",
"name",
"index",
"panes",
"active"
],
"type": "object"
},
"type": [
"array"
]
}
},
"required": [
"session",
"path",
"created",
"activeWindowId",
"windows"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"openWorldHint": true,
"title": "Get session info"
}
Esc

Type to search.