get_doctype_meta
Retrieve the field schema and metadata for a DocType to understand its structure before creating or updating documents in ERPNext.
Instructions
Fetch the field/schema definition (metadata) for a DocType.
Useful for discovering what fields exist before create_document/update_document calls.
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>"
},
"name": "get_doctype_meta"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doctype | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||