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

search_panes

Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted. Find which panes are showing text matching a regular expression. This is the tool for ‘which pane has the error’, ‘where is the build running’, or any question about what a pane CONTAINS — the list tools only see names and sizes.

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

Arguments

No other arguments are accepted.

Result

Returns object

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"Search panes"

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": {
"ignoreCase": {
"default": true,
"description": "Ignore case.",
"type": "boolean"
},
"includeHistory": {
"default": false,
"description": "Search scrollback too.",
"type": "boolean"
},
"maxMatchesPerPane": {
"default": 20,
"description": "Maximum matches per pane.",
"maximum": 2147483647,
"minimum": -2147483648,
"type": "integer"
},
"pattern": {
"description": "A linear-time regular expression, at most 999 UTF-8 bytes. .NET syntax without lookarounds, backreferences or atomic groups.",
"type": "string"
},
"session": {
"default": null,
"description": "A session id or name. Omit for every session.",
"type": [
"string",
"null"
]
}
},
"required": [
"pattern"
],
"type": "object"
}
Output schema
{
"properties": {
"panes": {
"items": {
"properties": {
"matches": {
"items": {
"properties": {
"row": {
"type": "integer"
},
"text": {
"type": "string"
}
},
"required": [
"row",
"text"
],
"type": "object"
},
"type": "array"
},
"paneId": {
"type": "string"
},
"sessionId": {
"type": "string"
},
"windowId": {
"type": "string"
}
},
"required": [
"paneId",
"windowId",
"sessionId",
"matches"
],
"type": "object"
},
"type": "array"
},
"panesSearched": {
"type": "integer"
},
"pattern": {
"type": "string"
},
"truncated": {
"type": "boolean"
}
},
"required": [
"pattern",
"panesSearched",
"panes",
"truncated"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference