# Libtmux.Snapshot

- **Package:** libtmux
- **Language:** OCaml
- **Kind:** module
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L403
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-snapshot/

```ocaml
module Snapshot
```

A complete immutable graph captured over an acquisition interval. Collections are replayable immutable arrays. Capturing several tmux commands does not establish an atomic transaction.

## Members

### Collections and queries

- [`sessions`](/en/ocaml/latest/reference/libtmux-snapshot-sessions/) (function)
- [`windows`](/en/ocaml/latest/reference/libtmux-snapshot-windows/) (function)
- [`panes`](/en/ocaml/latest/reference/libtmux-snapshot-panes/) (function)
- [`clients`](/en/ocaml/latest/reference/libtmux-snapshot-clients/) (function): Collections and their contents are immutable. They retain capture order, are replayable and remain readable after the acquiring client closes.

### Common operations

- [`find_session`](/en/ocaml/latest/reference/libtmux-snapshot-find_session/) (function)
- [`find_window`](/en/ocaml/latest/reference/libtmux-snapshot-find_window/) (function)
- [`find_pane`](/en/ocaml/latest/reference/libtmux-snapshot-find_pane/) (function)

### Other members

- [`create`](/en/ocaml/latest/reference/libtmux-snapshot-create/) (function): Validate and materialize a complete captured graph without I/O. Equal duplicate global rows collapse in first-occurrence order; conflicting rows and dangling references return {!Error.Capture_raced}. Links at different indexes remain distinct, including within one session. At most 10,000 input rows are admitted. Each session needs one current link and each window one active pane. Capture spans an interval, not an atomic instant. Input strings are bytes; no Unicode normalization is performed.
- [`finished_at_ns`](/en/ocaml/latest/reference/libtmux-snapshot-finished_at_ns/) (function)
- [`id`](/en/ocaml/latest/reference/libtmux-snapshot-id-1y6d/) (function)
- [`Id`](/en/ocaml/latest/reference/libtmux-snapshot-id-1y9h/) (module)
- [`Input`](/en/ocaml/latest/reference/libtmux-snapshot-input/) (module)
- [`source`](/en/ocaml/latest/reference/libtmux-snapshot-source/) (function)
- [`started_at_ns`](/en/ocaml/latest/reference/libtmux-snapshot-started_at_ns/) (function)
- [`t`](/en/ocaml/latest/reference/libtmux-snapshot-t/) (typealias)
- [`window_links`](/en/ocaml/latest/reference/libtmux-snapshot-window_links/) (function)
