readFile
Read the entire contents of any text file as UTF-8. Use it to inspect configuration files, source code, or logs.
Instructions
Read the entire contents of a file and return it as UTF-8 text. Use this to inspect configuration files, source code, logs, or any text-based file. Returns the raw file content as a single text block. Throws an error if the file does not exist or cannot be read. Paths targeting sensitive system directories (e.g. /etc/shadow, /proc/, /dev/) are blocked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the file to read. Relative paths are resolved from the server's working directory. Must not be empty or contain null bytes. Examples: `/home/user/config.json`, `./src/index.ts`, `../README.md`. |