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.

list_windows

List windows through an exact owning session. Inspect tmux metadata; accepts no client-supplied executable input.

All C++ tools · JSON · Source

Arguments

session required · string
Stable session ID or name.

Schemas

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

Input schema
{
"additionalProperties": false,
"properties": {
"session": {
"description": "Stable session ID or name.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"session"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"windows": {
"items": {
"additionalProperties": false,
"properties": {
"active": {
"type": "boolean"
},
"height": {
"minimum": 0,
"type": "integer"
},
"id": {
"pattern": "^@[0-9]+$",
"type": "string"
},
"index": {
"type": "integer"
},
"layout": {
"type": "string"
},
"name": {
"type": "string"
},
"pane_count": {
"minimum": 0,
"type": "integer"
},
"session_id": {
"pattern": "^\\$[0-9]+$",
"type": "string"
},
"width": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"active",
"height",
"id",
"index",
"layout",
"name",
"pane_count",
"session_id",
"width"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"windows"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "List tmux windows"
}
Esc

Type to search.