# LibTmux::Async::Server#snapshot

- **Module:** LibTmux::Async
- **Package:** libtmux-async
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c8b839595d5a30e271e3f9be0d0fe811ddb11b7e/gems/libtmux/lib/libtmux/server.rb#L334
- **Public owner:** LibTmux::Server#snapshot
- **Page:** https://libtmux.org/en/ruby/v0.1.0/reference/libtmux-async-server-snapshot/

tmux command: [`list-clients`](/en/tmux/latest/manual/list-clients/)

tmux command: [`list-panes`](/en/tmux/latest/manual/list-panes/) server scope, [`cmd_list_panes_server`](/en/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/)

tmux command: [`list-sessions`](/en/tmux/latest/manual/list-sessions/)

tmux command: [`list-windows`](/en/tmux/latest/manual/list-windows/) server scope, [`cmd_list_windows_exec`](/en/tmux/latest/reference/c-function-cmd-list-windows-c-cmd_list_windows_exec/)

```
def snapshot: (
  ?timeout: ::Numeric,
  ?cancel: untyped,
  ?clients: bool,
  ?max_bytes: ::Integer,
  ?max_rows: ::Integer,
  ?max_field_bytes: ::Integer
) -> ::LibTmux::Snapshot
```

Behavior: Snapshot acquisition.

Behavior contract: Snapshot acquisition.

## Parameters

- `timeout` (`::Numeric`)
- `cancel` (`untyped`)
- `clients` (`bool`)
- `max_bytes` (`::Integer`)
- `max_rows` (`::Integer`)
- `max_field_bytes` (`::Integer`)
