Doco Upload Attachment
doco_upload_attachmentUpload image, PDF, text, or Word files to a Doco document, returning an attachment ID and URL. Use the ID in image node attrs.attachmentId to embed attachments in document blocks.
Instructions
上传附件(图片/PDF/文本/Word),返回 attachment_id 与 URL;在文档块中用 image 节点 attrs.attachmentId 引用
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": {
"document_id": "<document_id>",
"file_path": "<file_path>"
},
"name": "doco_upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Optional filename to use for the uploaded attachment. | |
| file_path | Yes | 服务器/本机可访问的文件绝对路径 | |
| document_id | Yes | 附件归属文档 ID | |
| idempotency_key | No | Optional key that makes a retried write safe. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||