# tmux.Server.SearchClients

- **Module:** tmux.Server
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/search.go#L42
- **Page:** https://libtmux.org/reference/go/tmux-server-searchclients/

```
tmux.Server.SearchClients(ctx: context.Context, filter: *TmuxFilter) -> ([]Client, error)
```

SearchClients returns a newly materialized snapshot projection of clients selected by tmux's live -f expression. A nil filter omits -f and requests the unfiltered listing on every supported tmux version. A nonnil filter, including an empty expression, requires tmux 3.4 or newer and otherwise returns [VersionTooLowError].
