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

Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted. Search bounded pane content for literal text or a regular expression.

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": {
"maxMatchesPerPane": {
"description": "Caller-controlled maxMatchesPerPane.",
"maximum": 200,
"minimum": 1,
"type": "integer"
},
"pattern": {
"description": "Caller-controlled pattern.",
"type": "string",
"x-libtmux-max-utf8-bytes": 4096
},
"regex": {
"description": "Caller-controlled regex.",
"type": "boolean"
},
"scrollbackLines": {
"description": "Caller-controlled scrollbackLines.",
"maximum": 2000,
"minimum": 1,
"type": "integer"
},
"session": {
"description": "Caller-controlled session.",
"type": "string"
}
},
"required": [
"pattern"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"matches": {
"items": {
"additionalProperties": false,
"properties": {
"line": {
"type": "integer"
},
"pane": {
"type": "string"
},
"paneRef": {
"type": "string"
},
"text": {
"type": "string"
}
},
"required": [
"line",
"pane",
"paneRef",
"text"
],
"type": "object"
},
"type": "array"
},
"panesAvailable": {
"type": "integer"
},
"panesSearched": {
"type": "integer"
},
"truncated": {
"type": "boolean"
},
"truncatedBy": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"matches",
"panesAvailable",
"panesSearched",
"truncated",
"truncatedBy"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference