# io.github.libtmux.SnapshotCapture.sessionsWhere

- **Module:** io.github.libtmux
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c067fced0dfd19bd6dd3d260e9d4c336becdb063/libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java#L246
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-snapshotcapture-snapshotcapture-sessionswhere/

```
ServerSnapshot sessionsWhere(
        String format,
        String... command)
```

The sessions holding a row that {@code format} selects in this listing, read in full in one fenced call, and a capture holding nothing when none does.

Nothing is a real answer: every operator {@link io.github.libtmux.query.TmuxFilters} writes
exists from the oldest supported tmux, so a format it lowers is never one tmux cannot evaluate.
A window or pane format is lifted to its session by looping that session's windows and panes,
so the one call that reads the sessions also decides which ones to read.

## Parameters

- `format` (`String`)
- `command` (`String`): {@code list-sessions}, {@code list-windows -a}, or {@code list-panes -a}
