clone_document
Duplicate an ERPNext document and optionally override selected fields to create a modified copy without re-entering data.
Instructions
Clone a document (optionally override fields)
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": {
"doctype": "<doctype>",
"name": "<name>"
},
"name": "clone_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Document name/ID to clone | |
| doctype | Yes | DocType name | |
| overrides | No | Fields to override (optional) |