Read file
read_fileRead a file from Nextcloud as UTF-8 text, or request base64 for binary files. Oversized files are refused rather than truncated.
Instructions
Read a file from Nextcloud. Text is returned as UTF-8. Binary files are refused unless encoding is base64. Files larger than the server read limit are refused rather than truncated.
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": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the Nextcloud files root. | |
| encoding | No | Omit for UTF-8 text. Pass "base64" for binary files. Text mode refuses binary payloads. |