# capture_pane

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

> Return visible text, or retained history when requested. 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.

Return visible text, or retained history when requested. Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted.

[All C++ tools](../) · [JSON](../capture_pane.json) · [Source](https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/apps/mcp/src/tool_catalog.cpp#L1809)

## Arguments

* `history` optional · boolean

  Capture retained history as well as the visible pane.

* `paneId` required · string

  Stable pane ID.

## Schemas

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