Edit a scenario's name, size or attached inputs
update_scenarioEdit a scenario: its name, description, resolution, duration, terrain sampling, solver, or which input rows it points at.
Instructions
Edit a scenario: its name, description, resolution, duration, terrain sampling, solver, or which input rows it points at.
A thin PATCH of scenarios/{id}/ with only the fields you pass. It NEVER builds or runs anything: a changed scenario is marked stale and you call build_scenario when the person agrees. Keep the name true: a scenario named '... - 10m' whose resolution you set to 30 must be renamed in the same call. Attaching an input row changes only THIS scenario; to vary an input for a variant, clone_scenario first, then attach the new row to the clone.
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": {
"project_id": "<project_id>",
"scenario_id": "<scenario_id>"
},
"name": "update_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name. Keep it true: if it states a resolution or duration, change it too. | |
| inflow | No | Inflow row id to attach | |
| culvert | No | Culvert row id to attach | |
| terrain | No | Terrain id to attach | |
| boundary | No | Boundary row id to attach | |
| building | No | Building row id to attach | |
| duration | No | Simulation duration in seconds | |
| friction | No | Friction row id to attach | |
| rainfall | No | Rainfall row id to attach (write_input_layer with a target returns one) | |
| project_id | Yes | The project ID | |
| resolution | No | Mesh resolution as a LENGTH in metres (smaller = finer, more triangles) | |
| description | No | New description | |
| mesh_region | No | MeshRegion row id to attach | |
| scenario_id | Yes | The scenario ID | |
| flow_algorithm | No | Solver (the ANUGA flow algorithm): 'DE0', 'DE1' or 'DE_ader2'. DE0 = standard (default); DE1 = second-order, about 2x compute and price; DE_ader2 = second-order, experimental (still being validated upstream), about 1.25x price. A non-default solver raises the quote_estimate, so tell the user and ask before choosing one. Say which one the model used. | |
| elevation_sampling | No | Terrain sampling, how the model reads the ground under each mesh triangle: 'footprint' or 'centroid'. footprint = area-weighted average of DEM cells under each triangle (default); centroid = the DEM cell at the triangle centre (plain-ANUGA style). Say which one the model used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||