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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |