fs_read_file
Read file contents from the filesystem to access text or binary data for development tasks. Supports UTF-8, binary, and base64 encoding formats.
Instructions
Read the contents of a file from the filesystem. Supports text and binary files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the file to read | |
| encoding | No | File encoding | utf8 |
Input Schema (JSON Schema)
{
"properties": {
"encoding": {
"default": "utf8",
"description": "File encoding",
"enum": [
"utf8",
"binary",
"base64"
],
"type": "string"
},
"path": {
"description": "Absolute or relative path to the file to read",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}