# tmux.Plan.CmdCapture

- **Module:** tmux.Plan
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/plan.go#L709
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-plan-cmdcapture/

```
tmux.Plan.CmdCapture(target: Ref, args: string)
```

CmdCapture records raw tmux arguments whose output is returned in the step's [OpResult], and is otherwise [Plan.Cmd].

Reading output is what stops an operation sharing a dispatch, so this is sent
on its own; [Plan.Explain] reports that.
