file_read
Reads a file's contents as UTF-8 text or base64, and rejects files above 8 MiB or end-to-end encrypted files. Use it to inspect file contents across stored adapters.
Instructions
Read a file's contents. Returns UTF-8 text when the bytes are valid UTF-8, otherwise base64. Files above 8 MiB are rejected - use the REST download endpoint for those. An end-to-end encrypted file (encrypted: true) is refused with E2E_ENCRYPTED: filex holds no key; the person decrypts it in the filex web UI or with filex decrypt.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | adapter://file path to read |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | Yes | ||
| path | Yes | ||
| content | Yes | ||
| encoding | Yes |