Read host file
read_fileRead text file contents from allowed host paths, respecting configured permissions. Specify path and optional max characters.
Instructions
Read a text file from an allowed host path.
Default readable roots are the home directory plus /etc and /var/log on Linux/macOS. Configure HOST_MCP_READ_ROOTS to change them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |