MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. 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_panes

list_panes( columns?: Array<"active" | "current_command" | "current_path" | "cursor_x" | "cursor_y" | "dead" | "exit_status" | "height" | "history_limit" | "history_size" | "id" | "index" | "pid" | "title" | "tty" | "width">, limit?: integer, offset?: integer, pageToken?: string, scope?: object | object, where?: object, )

Discover unique physical panes using generation-bound session/window scopes, native inert criteria and scalar columns. Terminal fields are data. Continue nextPageToken only while discovery facets and query remain unchanged; observation_changed requires a fresh listing. Configured tmux hooks and aliases may have effects, including during observation.

MCP request method
tools/call Send list_panes as the tool name, with the arguments below.
Wraps
LibTmux.snapshotThe library call this tool makes: packages/LibTmuxMCP/src/tools.jl:659.
Tool selection
Enabled by default.

Arguments

  • columns? (Array<"active" | "current_command" | "current_path" | "cursor_x" | "cursor_y" | "dead" | "exit_status" | "height" | "history_limit" | "history_size" | "id" | "index" | "pid" | "title" | "tty" | "width">)

    minItems
    1
    maxItems
    16
    uniqueItems
    true
  • limit? = 32 (integer)

    minimum
    1
    maximum
    128
  • offset? = 0 (integer)

    minimum
    0
    maximum
    1000000
  • pageToken? (string)

    Continue nextPageToken; changed discovery facets or query refuse with observation_changed.

    maxLength
    80
    pattern
    "^v1\\.(0|[1-9][0-9]{0,6})\\.[0-9a-f]{64}$"
  • scope? (object | object)

    Matches exactly one variant.

  • where? (object)

    Native inert pane criteria; field types and relation targets use the core catalog. Maximum nesting 24, 512 nodes, 64 items, 1024 bytes per string, 8192 string/key bytes total.

    No other properties are accepted.

No other arguments are accepted.

Result

Returns object | object

Matches one or more variants.

Types

criteriaNode: object | object | object

type

Matches exactly one variant.

  • Variant 1 (object)

    No other properties are accepted.

  • Variant 2 (object)

    No other properties are accepted.

  • Variant 3 (object)

    • fields (Array<object>)

      maxItems
      64
      • Items (object)

        • field ("tmux.client.activity" | "tmux.client.created" | "tmux.client.id" | "tmux.client.name" | "tmux.client.pid" | "tmux.client.session" | "tmux.pane.active" | "tmux.pane.current_command" | "tmux.pane.current_path" | "tmux.pane.cursor_x" | "tmux.pane.cursor_y" | "tmux.pane.dead" | "tmux.pane.exit_status" | "tmux.pane.height" | "tmux.pane.history_limit" | "tmux.pane.history_size" | "tmux.pane.id" | "tmux.pane.index" | "tmux.pane.pid" | "tmux.pane.title" | "tmux.pane.tty" | "tmux.pane.width" | "tmux.pane.window" | "tmux.session.activity" | "tmux.session.attached_clients" | "tmux.session.created" | "tmux.session.id" | "tmux.session.last_attached" | "tmux.session.name" | "tmux.session.windowlinks" | "tmux.session.windows" | "tmux.window.activity" | "tmux.window.height" | "tmux.window.id" | "tmux.window.layout" | "tmux.window.name" | "tmux.window.panes" | "tmux.window.visible_layout" | "tmux.window.width" | "tmux.window.windowlinks" | "tmux.window.zoomed" | "tmux.windowlink.active" | "tmux.windowlink.index" | "tmux.windowlink.session" | "tmux.windowlink.window")

        • match (object | object | object | object)

          Matches exactly one variant.

        No other properties are accepted.

    • op ("fields")

    No other properties are accepted.

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Capability

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

Every Julia 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
{
"$defs": {
"criteriaNode": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"args": {
"items": {
"$ref": "#/$defs/criteriaNode"
},
"maxItems": 64,
"type": "array"
},
"op": {
"enum": [
"all",
"any"
]
}
},
"required": [
"op",
"args"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arg": {
"$ref": "#/$defs/criteriaNode"
},
"op": {
"const": "not"
}
},
"required": [
"op",
"arg"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"fields": {
"items": {
"additionalProperties": false,
"properties": {
"field": {
"enum": [
"tmux.client.activity",
"tmux.client.created",
"tmux.client.id",
"tmux.client.name",
"tmux.client.pid",
"tmux.client.session",
"tmux.pane.active",
"tmux.pane.current_command",
"tmux.pane.current_path",
"tmux.pane.cursor_x",
"tmux.pane.cursor_y",
"tmux.pane.dead",
"tmux.pane.exit_status",
"tmux.pane.height",
"tmux.pane.history_limit",
"tmux.pane.history_size",
"tmux.pane.id",
"tmux.pane.index",
"tmux.pane.pid",
"tmux.pane.title",
"tmux.pane.tty",
"tmux.pane.width",
"tmux.pane.window",
"tmux.session.activity",
"tmux.session.attached_clients",
"tmux.session.created",
"tmux.session.id",
"tmux.session.last_attached",
"tmux.session.name",
"tmux.session.windowlinks",
"tmux.session.windows",
"tmux.window.activity",
"tmux.window.height",
"tmux.window.id",
"tmux.window.layout",
"tmux.window.name",
"tmux.window.panes",
"tmux.window.visible_layout",
"tmux.window.width",
"tmux.window.windowlinks",
"tmux.window.zoomed",
"tmux.windowlink.active",
"tmux.windowlink.index",
"tmux.windowlink.session",
"tmux.windowlink.window"
]
},
"match": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"op": {
"enum": [
"eq",
"ne",
"ge",
"le",
"gt",
"lt"
]
},
"value": {
"type": [
"string",
"number",
"boolean",
"null"
]
}
},
"required": [
"op",
"value"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"op": {
"const": "in"
},
"values": {
"items": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"maxItems": 64,
"type": "array"
}
},
"required": [
"op",
"values"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"case": {
"enum": [
"sensitive",
"ascii_insensitive"
]
},
"op": {
"enum": [
"contains",
"startsWith",
"endsWith"
]
},
"value": {
"description": "Valid UTF-8; at most 1024 bytes",
"maxLength": 1024,
"type": "string"
}
},
"required": [
"op",
"value",
"case"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"op": {
"enum": [
"is",
"anyRelated",
"allRelated",
"noRelated"
]
},
"where": {
"$ref": "#/$defs/criteriaNode"
}
},
"required": [
"op",
"where"
],
"type": "object"
}
]
}
},
"required": [
"field",
"match"
],
"type": "object"
},
"maxItems": 64,
"type": "array"
},
"op": {
"const": "fields"
}
},
"required": [
"op",
"fields"
],
"type": "object"
}
]
}
},
"additionalProperties": false,
"properties": {
"columns": {
"items": {
"enum": [
"active",
"current_command",
"current_path",
"cursor_x",
"cursor_y",
"dead",
"exit_status",
"height",
"history_limit",
"history_size",
"id",
"index",
"pid",
"title",
"tty",
"width"
]
},
"maxItems": 16,
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"limit": {
"default": 32,
"maximum": 128,
"minimum": 1,
"type": "integer"
},
"offset": {
"default": 0,
"maximum": 1000000,
"minimum": 0,
"type": "integer"
},
"pageToken": {
"description": "Continue nextPageToken; changed discovery facets or query refuse with observation_changed.",
"maxLength": 80,
"pattern": "^v1\\.(0|[1-9][0-9]{0,6})\\.[0-9a-f]{64}$",
"type": "string"
},
"scope": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"generation": {
"description": "Valid UTF-8; at most 128 bytes",
"maxLength": 128,
"type": "string"
},
"sessionId": {
"description": "Valid UTF-8; at most 64 bytes",
"maxLength": 64,
"pattern": "^\\$(0|[1-9][0-9]*)$",
"type": "string"
}
},
"required": [
"sessionId",
"generation"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"generation": {
"description": "Valid UTF-8; at most 128 bytes",
"maxLength": 128,
"type": "string"
},
"windowId": {
"description": "Valid UTF-8; at most 64 bytes",
"maxLength": 64,
"pattern": "^@(0|[1-9][0-9]*)$",
"type": "string"
}
},
"required": [
"windowId",
"generation"
],
"type": "object"
}
]
},
"where": {
"additionalProperties": false,
"description": "Native inert pane criteria; field types and relation targets use the core catalog. Maximum nesting 24, 512 nodes, 64 items, 1024 bytes per string, 8192 string/key bytes total.",
"properties": {
"entity": {
"const": "pane"
},
"schema": {
"const": "libtmux.julia.where"
},
"version": {
"const": 1
},
"where": {
"$ref": "#/$defs/criteriaNode"
}
},
"required": [
"schema",
"version",
"entity",
"where"
],
"type": "object"
}
},
"required": [],
"type": "object"
}
Output schema
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"contextsCoverage": {
"enum": [
"selected_session",
"all_observed_links"
]
},
"coverage": {
"type": "string"
},
"generationGuarantee": {
"type": "string"
},
"nextOffset": {
"type": [
"integer",
"null"
]
},
"nextPageToken": {
"type": [
"string",
"null"
]
},
"pagination": {
"const": "verified_discovery_facets"
},
"panes": {
"items": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"active": {
"type": "boolean"
},
"caller": {
"type": "boolean"
},
"command": {
"type": [
"string",
"null"
]
},
"contexts": {
"items": {
"additionalProperties": false,
"properties": {
"sessionId": {
"type": "string"
},
"sessionName": {
"type": "string"
},
"windowId": {
"type": "string"
},
"windowIndex": {
"type": "integer"
},
"windowName": {
"type": "string"
}
},
"required": [
"sessionId",
"sessionName",
"windowId",
"windowName",
"windowIndex"
],
"type": "object"
},
"maxItems": 8,
"type": "array"
},
"contextsTruncated": {
"type": "boolean"
},
"dead": {
"type": "boolean"
},
"fieldsTruncated": {
"type": "boolean"
},
"height": {
"type": "integer"
},
"target": {
"additionalProperties": false,
"properties": {
"generation": {
"description": "Opaque generation from list_panes",
"maxLength": 128,
"type": "string"
},
"paneId": {
"description": "Valid UTF-8; at most 64 bytes",
"maxLength": 64,
"pattern": "^%(0|[1-9][0-9]*)$",
"type": "string"
}
},
"required": [
"paneId",
"generation"
],
"type": "object"
},
"title": {
"type": "string"
},
"width": {
"type": "integer"
}
},
"required": [
"target",
"active",
"dead",
"command",
"title",
"width",
"height",
"caller",
"contexts",
"contextsTruncated",
"fieldsTruncated"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"caller": {
"type": "boolean"
},
"contexts": {
"items": {
"additionalProperties": false,
"properties": {
"sessionId": {
"type": "string"
},
"sessionName": {
"type": "string"
},
"windowId": {
"type": "string"
},
"windowIndex": {
"type": "integer"
},
"windowName": {
"type": "string"
}
},
"required": [
"sessionId",
"sessionName",
"windowId",
"windowName",
"windowIndex"
],
"type": "object"
},
"maxItems": 8,
"type": "array"
},
"contextsTruncated": {
"type": "boolean"
},
"fieldsTruncated": {
"type": "boolean"
},
"target": {
"additionalProperties": false,
"properties": {
"generation": {
"description": "Opaque generation from list_panes",
"maxLength": 128,
"type": "string"
},
"paneId": {
"description": "Valid UTF-8; at most 64 bytes",
"maxLength": 64,
"pattern": "^%(0|[1-9][0-9]*)$",
"type": "string"
}
},
"required": [
"paneId",
"generation"
],
"type": "object"
},
"values": {
"additionalProperties": false,
"maxProperties": 16,
"minProperties": 1,
"properties": {
"active": {
"type": "boolean"
},
"current_command": {
"type": [
"string",
"null"
]
},
"current_path": {
"type": [
"string",
"null"
]
},
"cursor_x": {
"type": "integer"
},
"cursor_y": {
"type": "integer"
},
"dead": {
"type": "boolean"
},
"exit_status": {
"type": [
"integer",
"null"
]
},
"height": {
"type": "integer"
},
"history_limit": {
"type": "integer"
},
"history_size": {
"type": "integer"
},
"id": {
"type": "string"
},
"index": {
"type": "integer"
},
"pid": {
"type": [
"integer",
"null"
]
},
"title": {
"type": "string"
},
"tty": {
"type": [
"string",
"null"
]
},
"width": {
"type": "integer"
}
},
"required": [],
"type": "object"
}
},
"required": [
"target",
"caller",
"contexts",
"contextsTruncated",
"fieldsTruncated",
"values"
],
"type": "object"
}
]
},
"maxItems": 128,
"type": "array"
},
"terminalContent": {
"type": "string"
},
"total": {
"type": "integer"
},
"truncated": {
"type": "boolean"
}
},
"required": [
"nextPageToken",
"contextsCoverage",
"terminalContent",
"nextOffset",
"pagination",
"generationGuarantee",
"truncated",
"coverage",
"panes",
"total"
],
"type": "object"
},
{
"properties": {
"error": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"effects": {
"enum": [
"none",
"possible"
]
},
"message": {
"type": "string"
},
"output": {
"type": "string"
},
"retryable": {
"type": "boolean"
}
},
"required": [
"code",
"message",
"effects",
"retryable"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference