erp_call_session
WHEN: to run several ERP tools in ONE ERP session, in order, when the steps depend on each other: open a form, click New, set field values, save, close. Each separate erp_call starts a new ERP session, so a form opened by one call is gone at the next; this tool keeps them together. The user's own F&O roles apply; a read-only instance refuses every step that could change data. ON EVERY INSTANCE, steps that can change data run only with confirm=true: without it nothing runs and you get the exact steps back, to show to the user. Set confirm=true only after the user agreed to those exact steps. All steps are checked BEFORE the first one runs, and the run stops at the first step that fails, so nothing is written after a failure. stepsJson: [{"tool":"form_open_menu_item","arguments":{...}}, ...], at most 15 steps. Close the forms you open.
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": {
"instance": "<instance>",
"stepsJson": "<stepsJson>"
},
"name": "erp_call_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Required true to run steps that can change data, on any instance, and only after the user agreed to those exact steps. | |
| instance | Yes | Instance alias from erp_list_instances. | |
| stepsJson | Yes | JSON array of steps: [{"tool":"<name from erp_list_tools>","arguments":{...}}]. |