read_file
Read files from WSL, returning UTF-8 text or base64 binary. Supports offset/limit for large files and optional SHA-256 hash verification for data integrity.
Instructions
Read a file from WSL. Text files return UTF-8 content; binary files return base64 with a mimeType. Supports offset/limit for large files; sha256=true returns a hash of the read bytes for round-trip verification.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute POSIX path in WSL (use ~ for home) | |
| limit | No | Max bytes to read | |
| distro | No | ||
| offset | No | Byte offset to start reading | |
| sha256 | No | Return sha256 (hex) of the read bytes |