get_file
Retrieve file content from Nextcloud. Returns text, viewable images, or metadata for unsupported binary files based on the file path.
Instructions
Read a file's content from Nextcloud.
Text files are returned as text. Image files (PNG, JPEG, GIF, WebP) are returned as viewable images. Other binary files return metadata.
Args: path: File path relative to user's root. Example: "Documents/notes.md"
Returns: File content as text, an image, or metadata for unsupported binary files.
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": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |