# LibTmux.Snapshot.fetch/3

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

```
fetch(snapshot, entity, id)
@spec fetch(
        t(),
        LibTmux.Schema.entity_selector(),
        LibTmux.Ref.id()
      ) ::
        {:ok, LibTmux.Schema.observation()}
        | {:error, LibTmux.Error.t()}
```

Looks up one exact observed ID without I/O.

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

## Parameters

- `snapshot` (`t()`)
- `entity` (`LibTmux.Schema.entity_selector()`)
- `id` (`LibTmux.Ref.id()`)

## Guides

Pages that discuss `fetch/3`.

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