read_file
Retrieve the content of a specified file in UTF-8 encoding. Supports absolute or relative paths, with relative paths resolved against a predefined session default. Ensures secure and standardized file access.
Instructions
Reads the entire content of a specified file as UTF-8 text. Accepts relative or absolute paths. Relative paths are resolved against the session default set by set_filesystem_default
.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
path | Yes | The path to the file to read. Can be relative or absolute. If relative, it resolves against the path set by `set_filesystem_default`. If absolute, it is used directly. If relative and no default is set, an error occurs. |