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 /images/ and /attachments/, returns URL→local_path mapping. 详见 references/api/extended_api.md
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/ |