create_chart
Create a new ERPNext chart by defining its name, chart type, target DocType, and optional data, so you can visualize records in dashboards and reports.
Instructions
Create a new Chart 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": {
"chart_name": "<chart_name>",
"chart_type": "<chart_type>",
"document_type": "<document_type>"
},
"name": "create_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Chart data (optional) | |
| chart_name | Yes | Chart name | |
| chart_type | Yes | Chart type (Bar, Line, etc.) | |
| document_type | Yes | Target DocType |