# libtmux:fetch-windows

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/capture.lisp#L191
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-fetch-windows/

```
(fetch-windows client &rest options)
```

Acquire a complete snapshot and return physical windows once each. OPTIONS go to FETCH-SNAPSHOT.

## Parameters

- `client`
- `options`

## tmux command

The tmux commands behind `fetch-windows`.

- [`list-panes`](/en/tmux/latest/manual/list-panes/) `-a` server scope, [`cmd_list_panes_server`](/en/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/) (the server has sessions) (source: `src/capture.lisp:30`)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_list_panes_entry`](/en/tmux/latest/reference/c-variable-cmd_list_panes_entry/) (attribute)
- [`cmd_list_panes_server`](/en/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/) (function)

## Guides

Pages that discuss `fetch-windows`.

- [Captures and identity](/en/lisp/latest/concepts/captures/)
