# pane.Pane.captureBounded

- **Module:** pane
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/de36ea54f5c4b7c206870b2cb08b6f144bc5d55f/packages/libtmux/src/pane.ts#L469
- **Page:** https://libtmux.org/en/ts/latest/reference/pane-pane-capturebounded/

```
captureBounded(
  options: BoundedCaptureOptions,
): Promise<BoundedGridCapture>
```

Read the tail of a pane grid range within native row and UTF-8 byte limits.

The byte budget reserves space for the widest possible contents of each
row. If one row cannot fit at the current dimensions, the result is
empty. tmux checks the pane dimensions before it reads the grid. One
resize can be retried against the same daemon within the original deadline.

## Parameters

- `options` (`BoundedCaptureOptions`)

## Errors

- [`RangeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError): for invalid row or byte limits or native row offsets.

## Examples

```ts
const limits = { byteLimit: 64_000, lineLimit: 12 };
const { lines } = await pane.captureBounded(limits);
```
