read_file
Read text or binary file contents from your Xcode project and allowed directories. Specify file path, encoding, or binary output for base64-encoded data.
Instructions
Reads the contents of a file within the active project or allowed directories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asBinary | No | If true, read the file as binary and return base64-encoded content. Useful for images and other binary files. | |
| encoding | No | Encoding to use when reading the file (e.g., 'utf-8', 'latin1'). Default is 'utf-8'. | |
| filePath | Yes | Path to the file to read. Can be absolute, relative to active directory, or use ~ for home directory. |