# libtmux::Snapshot::take

- **Module:** libtmux::Snapshot
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/snapshot.hpp#L156
- **Page:** https://libtmux.org/reference/cxx/libtmux-snapshot-take/

```
libtmux::Snapshot::take(backend: std::shared_ptr< const detail::Backend >, fields: std::span< const std::string_view >, request: CommandRequest, placement: FormatArgument = FormatArgument::flag) -> expected< std::shared_ptr< const Snapshot >, CommandFailure >
```

Run `request` with this entity's fields appended and parse what came back.

Rows are parsed once, here: entities hold views into them, so a second parse would invalidate every entity already handed out.
