yuque_export_resources
Download images and attachments from a Yuque document to local directories, extracting resource URLs from HTML and returning a URL-to-local-path mapping.
Instructions
Download images/attachments from a document to local directory. Extracts resource URLs from body_html, downloads to <output_dir>/images/ and <output_dir>/attachments/, returns URL→local_path mapping. 详见 references/api/extended_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": {
"id": "<id>",
"output_dir": "<output_dir>"
},
"name": "yuque_export_resources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document ID or slug (required) | |
| book_id | No | Repository ID or namespace (recommended when using slug) | |
| output_dir | Yes | Output directory path (required). Resources saved to <output_dir>/images/ and <output_dir>/attachments/ |