cat
Read file contents and output them as JSON or plain text. Supports byte offsets and length for partial reads. Use to inspect files in agent workflows.
Instructions
Read and output file contents. Read-only, no side effects. Returns JSON by default with bounded content; use --raw for full plain-text output. Supports byte-offset and length for partial reads. Use to inspect file contents in agent workflows. Not for binary inspection — use 'od' for hex/octal dumps. See also 'head', 'tail', 'od'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encoding | No | Text encoding for JSON content. | utf-8 |
| max_bytes | No | Maximum bytes to return. | |
| offset | No | Byte offset to start reading from. | |
| path | Yes | File to read. | |
| raw | No | Write raw bytes to stdout without a JSON envelope. |