read_file
Retrieve and display the entire content of a file from the filesystem. Supports multiple text encodings and provides precise error feedback. Ensures access is restricted to predefined directories for security.
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 |