anon_get_materials_resource_id_versions_version_preview
Preview a project material version using its resource ID and version; returns a WebP thumbnail, inline file stream, or 404 if no preview is available.
Instructions
预览指定版本。项目成员且通过可见范围校验。有缩略预览时返回 image/webp;无预览但文件 mime 命中内联白名单(位图、PDF、Markdown、常见音视频)时返回原始文件流;否则 404。 GET /api/projects/{id}/materials/{resourceId}/versions/{version}/preview 项目由当前 API 密钥自动确定,无需传 projectId。
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": "anon_get_materials_resource_id_versions_version_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |