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/callSendsearch_panesas the tool name, with the arguments below.
Arguments#
-
maxMatchesPerPane? (integer) #Caller-controlled maxMatchesPerPane.
- minimum
1- maximum
200
-
Caller-controlled pattern.
-
Caller-controlled regex.
-
Caller-controlled scrollbackLines.
- minimum
1- maximum
2000
-
Caller-controlled session.
No other arguments are accepted.
Result#
Returns object
-
truncatedBy(Array<string>) #
No other properties are accepted.
Annotations#
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"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"}