MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

tool MCPlatest

list_windows

list_windows( session?: string, )
tool [source]

Inspect tmux metadata; accepts no client-supplied executable input. Windows on this server, optionally restricted to one session by id or name.

MCP request method
tools/call Send list_windows as the tool name, with the arguments below.

Arguments#

Result#

Returns object

No other properties are accepted.

Annotations#

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"session": {
"description": "Session id ($1) or name. Omit for all sessions.",
"type": "string"
}
},
"type": "object"
}
Output schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"complete": {
"type": "boolean"
},
"omittedEntries": {
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"windows": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"description": "Stable window id, e.g. @1.",
"pattern": "^@\\d+$",
"type": "string"
},
"layout": {
"description": "tmux's layout string; feed it back only when metadataComplete is true.",
"type": "string"
},
"metadataComplete": {
"description": "Whether every projected metadata string is complete.",
"type": "boolean"
},
"name": {
"type": "string"
},
"omittedMetadataBytes": {
"description": "UTF-8 bytes omitted from projected metadata strings.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"omittedPlacements": {
"description": "Later placements omitted.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"panes": {
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"placements": {
"description": "Retained sessions and indexes where this window is linked.",
"items": {
"additionalProperties": false,
"properties": {
"active": {
"description": "Whether this placement is current in its session.",
"type": "boolean"
},
"index": {
"description": "The window index in this session.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"sessionId": {
"description": "Stable session id, e.g. $1.",
"pattern": "^\\$\\d+$",
"type": "string"
},
"sessionName": {
"type": "string"
}
},
"required": [
"index",
"sessionId",
"sessionName",
"active"
],
"type": "object"
},
"type": "array"
},
"placementsComplete": {
"description": "Whether placements contains every placement.",
"type": "boolean"
},
"zoomed": {
"type": "boolean"
}
},
"required": [
"id",
"layout",
"metadataComplete",
"name",
"omittedMetadataBytes",
"panes",
"omittedPlacements",
"placements",
"placementsComplete",
"zoomed"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"complete",
"omittedEntries",
"windows"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference