# LibTmux.list_hooks

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/0e761d353bc0606f69ad87994958d09a92c7f7d1/src/configuration.jl#L523
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-list_hooks/

```
list_hooks(
    server::LibTmux.Server,
    scope;
    inherit,
    max_bytes,
    kwargs...,
)
```

## Methods

Capture `HookEntry` rows without executing their command bodies. Scopes follow `get_hook`. Empty arrays remain distinguishable from missing overrides. `inherit=true` includes parent user hooks unless a local value, including an empty string, overrides that name. Older tmux versions verify portable names against exact reads and refuse ambiguous framing or changing values. Rows are observations, not a transaction.

```julia
list_hooks(server, scope; inherit=false, max_bytes=1048576, kwargs...)
```

## Parameters

- `server` (`LibTmux.Server`)
- `scope` (`Any`)
- `inherit` (`Bool`)
  Default: `false`.
- `max_bytes` (`Int`)
  Default: `1024 ^ 2`.
- `kwargs`

## Guides

Pages that discuss `list_hooks`.

- [Ownership and I/O](/en/julia/latest/topics/ownership/)
