yuque_copy_doc
Copy a single Yuque document to another repository using cleaned title, body, format, and target paths. Use it to duplicate content across knowledge bases after fetching the source.
Instructions
Copy a single document to another repo. Agent fetches source via yuque_get_doc, cleans content, then calls this tool with title/body/format/paths. 详见 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>",
"title": "<title>",
"body": "<body>",
"format": "<format>",
"paths": "<paths>"
},
"name": "yuque_copy_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Document body, cleaned by Agent (required) | |
| paths | Yes | Directory paths, e.g. ["Java/Spring","Database/MySQL"]. 1-5 paths (required) | |
| title | Yes | Document title (required) | |
| format | Yes | Content format: markdown / lake / html (required) | |
| source_url | No | Source document URL, appended as footer link | |
| source_title | No | Source document title for the footer link | |
| target_book_id | Yes | Target repository ID or namespace (required) |