# LibTmux.Snapshot.fetch_ref/3

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

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

Returns an action reference for an exact ID in this snapshot.

The reference carries the observed server instance. Lookup performs no I/O.
A later action can still find that the target has disappeared. See the
[one-shot split example](one-shot-actions.html#run-the-example).

## Parameters

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