tee
Capture intermediate pipeline data by writing stdin to files while passing through to stdout. Supports append and dry-run modes.
Instructions
Read stdin and write simultaneously to files and stdout with dry-run and append support. Destructive: writes to specified output files. Use --dry_run to preview. Use --append to add to files instead of overwriting. Returns JSON with output paths and byte counts. Use to capture intermediate pipeline data while passing it through. Not for simple file writing without passthrough — use redirection or 'cp'. For secure overwriting use 'shred'. See also 'cat', 'echo'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Echo stdin to stdout without a JSON envelope. | |
| paths | No | Files to write. | |
| append | No | Append instead of replacing. | |
| dry_run | No | Report operations without writing files. | |
| parents | No | Create missing parent directories. | |
| max_preview_bytes | No | Maximum JSON preview bytes. |