create_document
Create a new ERPNext document by specifying the DocType and field values in JSON format.
Instructions
Create a new document.
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 | JSON string of field values, e.g. '{"customer_name": "Test", "customer_type": "Individual"}' | |
| doctype | Yes | ERPNext DocType name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||