mavis_read
Reads workspace files, returning text for code/config or base64 for images, with truncation and offset for partial reads.
Instructions
Read a file from the workspace. Returns text content for code/config files, or base64 image content for screenshots (.png, .jpg, etc.). Truncates very large files; use offset for partial reads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Subdirectory to resolve path against. | |
| path | Yes | Path relative to workspace root (or absolute within workspace). | |
| max_lines | No | Truncate to first N lines. Default: no limit (within TEXT_MAX_BYTES). |