# Libtmux.Operations.capture_environment

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L1132
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-operations-capture_environment/

```
val capture_environment :
  ?hidden:bool -> Environment.scope -> Environment.t Command.t
```

Acquire a bounded table through a read-only command process. Its response must identify the bound daemon while the original pidfd remains live. Unsupported external variable names fail decoding; they are not omitted.

## Parameters

- `hidden?` (`bool`)
- `arg1` (`Environment.scope`)
