# capture_pane

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

> Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted. Read the text a pane is showing, and optionally its scrollback. The newest lines are always kept; anything dropped to fit the budget is reported. To watch a pane across several turns, use capture_since instead — it returns only what is new.

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. Read the text a pane is showing, and optionally its scrollback. The newest lines are always kept; anything dropped to fit the budget is reported. To watch a pane across several turns, use [capture\_since](https://libtmux.org/en/dotnet/latest/mcp/tools/capture_since/) instead — it returns only what is new.

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

## Arguments

* `includeHistory` optional · boolean

  Include scrollback.

  Default: `false`.

* `joinWrappedLines` optional · boolean

  Rejoin tmux-wrapped lines.

  Default: `false`.

* `maxLines` optional · integer | null

  Maximum returned lines.

  Default: `null`.

* `paneId` optional · string | null

  A pane id. Omit for the active pane.

  Default: `null`.

## Schemas

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