yuque_upload_attachment
Uploads local images, attachments, or videos to Yuque CDN and rejects unsupported file formats with guidance to package them as zip.
Instructions
Upload a file to Yuque CDN (image≤50MB, attachment/video≤2GB, requires cookie+ctoken). Extension pre-check: only Yuque-supported formats allowed (official list: https://www.yuque.com/yuque/gpvawt/ca13hg), unsupported extensions rejected with a friendly error (pack into zip first). POST /upload/attach. 详见 references/api/upload_api.md
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": {
"file_path": "<file_path>"
},
"name": "yuque_upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | File type: image, attachment, video, default attachment | |
| user_id | No | User ID, auto-detected from token if omitted | |
| file_path | Yes | Local file path (required) |