# LibTmux.Snapshot.new/2

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/snapshot.ex#L86
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-snapshot-new-2/

```
new(rows, options)
@spec new(rows(), [option()]) ::
        {:ok, t()} | {:error, LibTmux.Error.t()}
```

Validates observed rows, rejecting conflicts, invalid fields and dangling covered references.

See the [worked example](api-examples.html#local-graph-and-filtering).

## Parameters

- `rows` (`rows()`)
- `options` (`[option()]`)

## Guides

Pages that discuss `new/2`.

- [Captured tmux state](/en/elixir/pr-173/concepts/observations/)
