read_file
Access and retrieve the complete contents of a specified file from the file system, supporting various text encodings. Requires a file path and maxBytes
parameter to limit data read. Ideal for examining file content within permitted directories.
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. Requires maxBytes
parameter. Only works within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
maxBytes | Yes | Maximum bytes to read from the file. Must be a positive integer. Handler default: 10KB. | |
path | Yes |