echo
Output provided text as JSON for agent pipelines. Use --raw for plain text, --no-newline to omit newlines, and --escapes to interpret backslash escapes.
Instructions
Output provided text as JSON. Read-only, no side effects. Returns JSON with the echoed text by default; use --raw for plain text output. Use to display values or construct output strings in agent pipelines. Not for formatted output — use 'printf' for precise format control with conversion specifiers. See also 'printf'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write echo text without a JSON envelope. | |
| words | No | Words to emit. | |
| escapes | No | Interpret common backslash escapes. | |
| encoding | No | Output encoding (default: utf-8). Use 'auto' for BOM/autodetection. | utf-8 |
| no_newline | No | Do not append a newline. | |
| show_encoding | No | Include encoding detection metadata in JSON result. | |
| encoding_errors | No | How to handle encoding errors (default: replace). | replace |
| encoding_profile | No | Locale-aware encoding fallback profile for auto-detection. |