Duplicate a doc server-side
duplicate_docServer-side copy of any HTML doc the user can read (their own OR shared with them) into their own farm under a new name. THE fast path for building a modified version of an existing doc: content never passes through your context — duplicate in ~1s, then use patch_doc for the differences. Vastly faster than get_doc_html + re-hosting.
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": {
"new_name": "<new_name>"
},
"name": "duplicate_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Source share-link slug or full URL. Alternative to doc_name. | |
| account | No | Email address of the farm to act on. Omit for the signed-in farm. Only a connected account is accepted; call list_accounts to see which. | |
| doc_name | No | Source doc name (fuzzy-matched). | |
| new_name | Yes | Name for the copy in the user's farm. |