run_method
Call any whitelisted ERPNext server method by providing the dotted method path and optional keyword arguments. Supports GET or POST requests to invoke automated workflows or document operations.
Instructions
Call a server-side method (whitelisted API).
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": {
"method": "<method>"
},
"name": "run_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Optional JSON string of keyword arguments | |
| method | Yes | Dotted method path, e.g. "frappe.client.get_list" or "erpnext.selling.doctype.sales_order.sales_order.make_delivery_note" | |
| http_method | No | GET or POST (default POST) | POST |