Preview image of a file
nextcloud_get_previewGet a thumbnail preview of a file as Nextcloud renders it—photos, PDF first pages, office documents, or videos—so you can inspect scans, layouts, and images without downloading the full file.
Instructions
A thumbnail image of a file as Nextcloud renders it: photos, PDFs (first page), office documents and videos, depending on the preview providers the server has enabled. Use it to look at scanned documents, layouts or pictures without downloading the full file.
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": "nextcloud_get_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path, relative to the user's Nextcloud root, e.g. '/Documents/Offers/offer-4711.pdf' | |
| size | No | Longest edge in pixels (64-2048, default 1024). |