read_file
Retrieve and examine the contents of a file from the file system, supporting multiple text encodings like UTF-8 and base64. Provides clear error messages for unreadable files and operates within predefined directory limits.
Instructions
Read the complete contents of a file from the file system. Handles various text encodings and provides detailed error messages if the file cannot be read. Use this tool when you need to examine the contents of a single file. Only works within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
encoding | No | File encoding | utf-8 |
path | Yes | Path to the file to read |