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_window_info

Inspect tmux metadata; accepts no client-supplied executable input. Read one window’s name, index, size, layout, pane count and whether it is its session’s current window, without listing every window. Give the window ID, or a pane ID to read the window that holds it.

All C# tools · JSON · Source

Arguments

windowId required · string
A window id.

Schemas

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

Input schema
{
"additionalProperties": false,
"properties": {
"windowId": {
"description": "A window id.",
"type": "string"
}
},
"required": [
"windowId"
],
"type": "object"
}
Output schema
{
"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"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Get window info"
}
Esc

Type to search.