search_panes
- search_panes( ignoreCase?: boolean, includeHistory?: boolean, maxMatchesPerPane?: integer, pattern: string, session?: string | null, )
-
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/callSendsearch_panesas the tool name, with the arguments below.
Arguments
-
ignoreCase? =true(boolean)Ignore case.
-
includeHistory? =false(boolean)Search scrollback too.
-
maxMatchesPerPane? =20(integer)Maximum matches per pane.
- minimum
-2147483648- maximum
2147483647
-
A linear-time regular expression, at most 999 UTF-8 bytes. .NET syntax without lookarounds, backreferences or atomic groups.
-
session? =null(string | null)A session id or name. Omit for every session.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"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"}