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 windows, optionally within one session.

All Swift tools · JSON · Source

Arguments

session optional · string
Caller-controlled session.

Schemas

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

Input schema
{
"additionalProperties": false,
"properties": {
"session": {
"description": "Caller-controlled session.",
"type": "string"
}
},
"required": [],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"windows": {
"items": {
"additionalProperties": false,
"properties": {
"height": {
"type": "integer"
},
"id": {
"type": "string"
},
"index": {
"type": "integer"
},
"isActive": {
"type": "boolean"
},
"linkRef": {
"type": "string"
},
"name": {
"type": "string"
},
"paneCount": {
"type": "integer"
},
"sessionID": {
"type": "string"
},
"target": {
"type": "string"
},
"width": {
"type": "integer"
},
"windowRef": {
"type": "string"
}
},
"required": [
"height",
"id",
"index",
"isActive",
"linkRef",
"name",
"paneCount",
"sessionID",
"target",
"width",
"windowRef"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"windows"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "List windows"
}
Esc

Type to search.