create_doctype
Preview or create standard and site-custom DocTypes in Frappe, defining fields, permissions, and DocType-level properties for app-file or site-metadata storage.
Instructions
Preview or create a standard or site-custom DocType through Frappe.
fields accepts the native DocField properties and field types. properties
carries supported DocType-level settings such as autoname, tracking, sorting,
and search configuration. Standard DocTypes require a local app/module checkout
and Developer Mode so Frappe can write JSON, Python, JavaScript, and test files.
Site-custom DocTypes are stored in site metadata and do not generate app files.
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": {
"app": "<app>",
"module": "<module>",
"name": "<name>",
"fields": "<fields>"
},
"name": "create_doctype"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| name | Yes | ||
| fields | Yes | ||
| module | Yes | ||
| confirm | No | ||
| is_tree | No | ||
| is_custom | No | ||
| is_single | No | ||
| properties | No | ||
| permissions | No | ||
| is_child_table | No | ||
| is_submittable | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||