create_doctype
Creates a new ERPNext DocType with defined fields, naming rules, and options using standard or smart validation mode.
Instructions
Create a new DocType in ERPNext (unified – use mode = 'standard' | 'smart')
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": {
"name": "<name>"
},
"name": "create_doctype"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the new DocType | |
| fields | No | Array of field definitions for the DocType | |
| module | No | Module name (optional, defaults to 'Custom') | |
| autoname | No | Auto-naming rule (e.g., 'field:name', 'naming_series:', 'autoincrement') | |
| is_table | No | Whether this is a child table DocType (1 for yes, 0 for no) | |
| title_field | No | Field to use as title | |
| is_submittable | No | Whether documents can be submitted (1 for yes, 0 for no) |