# search_panes

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

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

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

[All Java tools](../) · [JSON](../search_panes.json) · [Source](https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux-mcp/src/main/java/io/github/libtmux/mcp/Catalog.java#L322)

## Arguments

* `max_lines` optional · integer

  Maximum matches across all panes. Defaults to 200.

  Default: `200`.

* `max_matches_per_pane` optional · integer

  Maximum matching lines per pane. Defaults to 5.

  Default: `5`.

* `pattern` required · string

  The bounded text or regular expression to search for.

* `regex` optional · boolean

  Treat pattern as a regular expression. Defaults to false.

  Default: `false`.

## Schemas

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