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. Returns metadata for one window.

All Go tools · JSON · Source

Arguments

window_id required · string
the window id, such as @1

Schemas

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

Input schema
{
"additionalProperties": false,
"properties": {
"window_id": {
"description": "the window id, such as @1",
"type": "string"
}
},
"required": [
"window_id"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"height": {
"type": "integer"
},
"layout": {
"type": "string"
},
"panes": {
"items": {
"additionalProperties": false,
"properties": {
"active": {
"type": "boolean"
},
"currentCommand": {
"type": "string"
},
"geometry": {
"additionalProperties": false,
"properties": {
"height": {
"type": "integer"
},
"left": {
"type": "integer"
},
"top": {
"type": "integer"
},
"width": {
"type": "integer"
}
},
"required": [
"left",
"top",
"width",
"height"
],
"type": "object"
},
"id": {
"type": "string"
},
"index": {
"type": "integer"
},
"isCaller": {
"type": [
"null",
"boolean"
]
},
"session": {
"type": "string"
},
"window": {
"type": "string"
},
"windowId": {
"type": "string"
}
},
"required": [
"id",
"session",
"window",
"windowId",
"index",
"currentCommand",
"active",
"geometry",
"isCaller"
],
"type": "object"
},
"type": [
"array"
]
},
"width": {
"type": "integer"
},
"window": {
"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"
},
"zoomed": {
"type": "boolean"
}
},
"required": [
"window",
"layout",
"width",
"height",
"zoomed",
"panes"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"openWorldHint": true,
"title": "Get window info"
}
Esc

Type to search.