# LibTmux.Capture.fetch/2

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/66b9b1c3f3f3186428abdfda2c76f5cf87446710/lib/libtmux/capture.ex#L47
- **Page:** https://libtmux.org/en/elixir/latest/reference/libtmux-capture-fetch-2/

```
fetch(server, options \\ [])
@spec fetch(LibTmux.Server.t(), [option()]) ::
        {:ok, LibTmux.Snapshot.t()}
        | {:error, LibTmux.Error.t()}
```

Performs bounded capture through an explicit server descriptor.

See `t:option/0` for the composed work, response and remaining-deadline
constraints inherited from `LibTmux.Transport.OneShot.run/3`.

See the [worked example](first-task.html).

## Parameters

- `server` (`LibTmux.Server.t()`)
- `options` (`[option()]`)
