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

Inspect tmux metadata; accepts no client-supplied executable input. List tmux windows, optionally within one session. This reads names and layouts, not terminal text — to find what a pane is showing, use search_panes.

All C# tools · JSON · Source

Arguments

session optional · string | null
A session id or name. Omit for every session.

Default: null.

Schemas

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

Input schema
{
"additionalProperties": false,
"properties": {
"session": {
"default": null,
"description": "A session id or name. Omit for every session.",
"type": [
"string",
"null"
]
}
},
"type": "object"
}
Output schema
{
"properties": {
"result": {
"items": {
"properties": {
"active": {
"type": "boolean"
},
"height": {
"type": "integer"
},
"index": {
"type": "integer"
},
"layout": {
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
},
"paneCount": {
"type": [
"integer",
"null"
]
},
"sessionId": {
"type": "string"
},
"width": {
"type": "integer"
},
"windowId": {
"type": "string"
}
},
"required": [
"windowId",
"sessionId",
"index",
"name",
"width",
"height",
"active",
"paneCount",
"layout"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"result"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "List windows"
}
Esc

Type to search.