yuque_copy_repo
Batch copy documents to a target repository by providing a JSON array with titles, bodies, formats, and paths; creates TOC directories automatically.
Instructions
Batch copy documents to another repo. Agent provides cleaned documents array (title/body/format/paths). Tool creates TOC dirs and copies. 详见 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": {
"target_book_id": "<target_book_id>",
"documents": "<documents>"
},
"name": "yuque_copy_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return raw full JSON | |
| documents | Yes | JSON array of {title, body, format, paths, source_url?, source_title?}. paths is array of 1-5 directory paths. (required) | |
| target_book_id | Yes | Target repository ID or namespace (required) |