smart_import_documents
Import ERPNext documents with validation, conflict resolution, and detailed per-document reporting.
Instructions
Import documents with validation, conflict resolution, and detailed reporting
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>",
"docs": "<docs>"
},
"name": "smart_import_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docs | Yes | Array of documents to import | |
| doctype | Yes | DocType name | |
| conflict_resolution | No | Conflict resolution strategy | skip |
| validate_before_import | No | Validate documents before importing (1/0, optional, defaults to 1) | |
| create_missing_doctypes | No | Create missing DocTypes if they don't exist (1/0, optional, defaults to 0) | |
| preserve_creation_dates | No | Preserve original creation dates (1/0, optional, defaults to 0) | |
| return_detailed_results | No | Return detailed results for each document (1/0, optional, defaults to 1) |