delete_vensim_variable
Deletes a Vensim variable's equation and diagram objects, removing linked flows, valves, pipes, and clouds; if other equations reference it, deletion is refused unless force is enabled.
Instructions
Delete a variable's equation and its diagram objects and arrows.
Deleting a flow also removes it from its stocks' INTEG equations and removes its valve, pipes and clouds. If other equations still use the variable the delete is refused and they are listed; force=true deletes anyway, leaving those equations broken. Writes in place (a backup is kept) unless output_path is given.
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": {
"model_path": "<model_path>",
"name": "<name>"
},
"name": "delete_vensim_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| force | No | ||
| model_path | Yes | ||
| output_path | No |