Create DocType
create_doctypeCreate a new custom DocType in ERPNext by defining fields, permissions, and module placement.
Instructions
Create a new custom DocType in ERPNext
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>",
"module": "<module>",
"fields": "<fields>"
},
"name": "create_doctype"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | DocType name | |
| fields | Yes | Field definitions | |
| module | Yes | Module to place the DocType in | |
| autoname | No | Autoname pattern | |
| permissions | No | Permission rules | |
| title_field | No | Field to use as title | |
| is_child_table | No | Whether this is a child table | |
| is_submittable | No | Whether documents can be submitted |