# LibTmux::Server.query

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Server.rakumod#L404
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-server-query/

```
method query(Mu $entity, *%options --> Positional:D)
```

Acquire a typed selection; only requested relationship predicates load the full graph.

Acquire a typed selection; only requested relationship predicates load the full graph.

## Parameters

- `$entity` (`Mu`)
- `%options`

## tmux command

The tmux commands behind `query`.

- [`list-buffers`](/en/tmux/latest/manual/list-buffers/) (buffer query or full graph)
- [`list-clients`](/en/tmux/latest/manual/list-clients/) (client query or full graph)
- [`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/) (pane query or full graph) (source: `lib/LibTmux/Server.rakumod:405`)
- [`list-sessions`](/en/tmux/latest/manual/list-sessions/) (session/group query or full graph)
- [`list-windows`](/en/tmux/latest/manual/list-windows/) `-a` server scope, [`cmd_list_windows_exec`](/en/tmux/latest/reference/c-function-cmd-list-windows-c-cmd_list_windows_exec/) (window/link query or full graph) (source: `lib/LibTmux/Server.rakumod:405`)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_list_buffers_entry`](/en/tmux/latest/reference/c-variable-cmd_list_buffers_entry/) (attribute)
- [`cmd_list_buffers_exec`](/en/tmux/latest/reference/c-function-cmd-list-buffers-c-cmd_list_buffers_exec/) (function)
- [`cmd_list_clients_entry`](/en/tmux/latest/reference/c-variable-cmd_list_clients_entry/) (attribute)
- [`cmd_list_clients_exec`](/en/tmux/latest/reference/c-function-cmd-list-clients-c-cmd_list_clients_exec/) (function)
- [`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)
- [`cmd_list_sessions_entry`](/en/tmux/latest/reference/c-variable-cmd_list_sessions_entry/) (attribute)
- [`cmd_list_sessions_exec`](/en/tmux/latest/reference/c-function-cmd-list-sessions-c-cmd_list_sessions_exec/) (function)
- [`cmd_list_windows_entry`](/en/tmux/latest/reference/c-variable-cmd_list_windows_entry/) (attribute)
- [`cmd_list_windows_exec`](/en/tmux/latest/reference/c-function-cmd-list-windows-c-cmd_list_windows_exec/) (function)
