read_file
Retrieve and display the complete contents of a file from the MCP Filesystem Server, supporting multiple text encodings and providing error details for unreadable files. Use within permitted directories to examine file data securely.
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 |