import_documents
Import documents from JSON into ERPNext by specifying a DocType and an array of document objects.
Instructions
Import documents from JSON
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": "import_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docs | Yes | Array of documents | |
| doctype | Yes | DocType name |