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.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

tool MCP

list_windows

list_windows( session: string, )

List windows through an exact owning session. Inspect tmux metadata; accepts no client-supplied executable input.

MCP request method
tools/call Send list_windows as the tool name, with the arguments below.
Wraps
libtmux::Session::windowsThe library call this tool makes: apps/mcp/src/tool_catalog.cpp:1721.

Arguments

No other arguments are accepted.

Result

Returns object

No other properties are accepted.

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"List tmux windows"

Capability

Toolset
Inspect Request tmux state and terminal output.
Process reach
none
tmux effects
observe

Every C++ tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.

Protocol data

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"properties": {
"session": {
"description": "Stable session ID or name.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"session"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"windows": {
"items": {
"additionalProperties": false,
"properties": {
"active": {
"type": "boolean"
},
"height": {
"minimum": 0,
"type": "integer"
},
"id": {
"pattern": "^@[0-9]+$",
"type": "string"
},
"index": {
"type": "integer"
},
"layout": {
"type": "string"
},
"name": {
"type": "string"
},
"pane_count": {
"minimum": 0,
"type": "integer"
},
"session_id": {
"pattern": "^\\$[0-9]+$",
"type": "string"
},
"width": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"active",
"height",
"id",
"index",
"layout",
"name",
"pane_count",
"session_id",
"width"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"windows"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference