erp_read_session
WHEN: to READ from the ERP through form tools, where several calls must share ONE ERP session: open a form, filter its grid, read its values. Each separate erp_read / erp_call starts a new ERP session, so a form opened by one call is gone at the next; this tool runs the steps in order in a single session. Every step must be a read-only tool (opening, filtering, selecting, reading); it refuses the whole call, before running anything, if one step could change data. It stops at the first step that fails. stepsJson: [{"tool":"form_open_menu_item","arguments":{...}}, ...], at most 15 steps. Close the forms you open as the last step.
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_read_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | Yes | Instance alias from erp_list_instances. | |
| stepsJson | Yes | JSON array of steps: [{"tool":"<name from erp_list_tools>","arguments":{...}}]. |