read_file
Retrieve the entire content of a specified file as UTF-8 text using relative or absolute paths. Relative paths resolve against a session default for efficient 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. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"path": {
"description": "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.",
"minLength": 1,
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}