# capture_pane

Source: https://libtmux.org/en/java/latest/mcp/tools/capture_pane/

> Returns bounded pane content and a cursor. 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.

Returns bounded pane content and a cursor. Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted.

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

## Arguments

* `history` optional · boolean

  Include scrollback rather than only the visible screen. Defaults to false.

  Default: `false`.

* `max_lines` optional · integer

  Maximum lines, keeping the newest. Defaults to 200.

  Default: `200`.

* `pane_id` required · string

  The pane to act on, such as %1. Every listing tool returns these.

## Schemas

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