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

search_panes

Searches the visible output of every pane. Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted.

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

No other properties are accepted.

Annotations#

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

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"properties": {
"max_lines": {
"default": 200,
"description": "Maximum matches across all panes. Defaults to 200.",
"type": "integer"
},
"max_matches_per_pane": {
"default": 5,
"description": "Maximum matching lines per pane. Defaults to 5.",
"type": "integer"
},
"pattern": {
"description": "The bounded text or regular expression to search for.",
"maxLength": 4096,
"type": "string"
},
"regex": {
"default": false,
"description": "Treat pattern as a regular expression. Defaults to false.",
"type": "boolean"
}
},
"required": [
"pattern"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"bytes_searched": {
"type": "integer"
},
"count": {
"type": "integer"
},
"lines_searched": {
"type": "integer"
},
"matches": {
"items": {
"additionalProperties": false,
"properties": {
"line": {
"type": "string"
},
"pane_id": {
"type": "string"
},
"session": {
"type": "string"
},
"window": {
"type": "string"
}
},
"required": [
"pane_id",
"session",
"window",
"line"
],
"type": "object"
},
"type": "array"
},
"note": {
"type": "string"
},
"panes_searched": {
"type": "integer"
},
"truncated": {
"type": "boolean"
},
"work_seconds": {
"type": "number"
}
},
"required": [
"count",
"panes_searched",
"lines_searched",
"bytes_searched",
"work_seconds",
"truncated",
"matches"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference