# search_panes

Source: https://libtmux.org/en/dotnet/latest/mcp/tools/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 is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

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.

[All .NET tools](../) · [JSON](../search_panes.json) · [Source](https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux.Mcp/Policy/CapabilityModel.cs#L568)

## Arguments

* `ignoreCase` optional · boolean

  Ignore case.

  Default: `true`.

* `includeHistory` optional · boolean

  Search scrollback too.

  Default: `false`.

* `maxMatchesPerPane` optional · integer

  Maximum matches per pane.

  Default: `20`.

* `pattern` required · string

  A linear-time regular expression, at most 999 UTF-8 bytes. .NET syntax without lookarounds, backreferences or atomic groups.

* `session` optional · string | null

  A session id or name. Omit for every session.

  Default: `null`.

## Schemas

The schema defines required fields, nested values, defaults, and validation constraints.
