frappe_run_method
Invoke whitelisted Frappe server methods by dotted path to run tasks like catalog sync. Enforces safety by blocking generic mutators and requiring confirmation for destructive actions.
Instructions
Call any whitelisted server method by dotted path, e.g. 'ffl_integrations.rsr.tasks.sync_catalog_now'. Generic Frappe mutators (frappe.client.set_value/insert/save/delete/bulk_update/...) are refused — use the structured frappe_*_document tools, which enforce the guards. Methods whose name implies a destructive action — or that are on the explicit high-consequence list — require confirm=true.
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": "frappe_run_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kwargs | No | ||
| method | Yes | ||
| confirm | No |