create_document
Create a new document in ERPNext by specifying the DocType and field values. This tool enables adding records like customers, leads, or orders to your ERP system.
Instructions
Create a new document of the given DocType.
data: field values for the new document, e.g. {"customer_name": "Acme Corp"}.
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>",
"data": "<data>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| doctype | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||