Copy a scenario (no run, no build)
clone_scenarioCopy a scenario into a new sibling, for a variant. No run is copied and nothing is built.
Instructions
Copy a scenario into a new sibling, for a variant. No run is copied and nothing is built.
The copy points at the SAME input rows as the original. Give the variant
its own input row by writing one with write_input_layer (target = a title)
and passing the new row id in overrides; the original scenario's inputs
stay as they were. The name and overrides go in the one copy call and Hydrata checks them first: a
refused name or id makes no copy.
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": "clone_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the copy (default: '<name>-copy'). Name it for what differs. | |
| overrides | No | Fields of the copy to set at once, the same as update_scenario: description, resolution, duration, elevation_sampling, flow_algorithm, terrain, boundary, friction, inflow, rainfall, building, mesh_region, culvert. | |
| project_id | Yes | The project ID | |
| scenario_id | Yes | The scenario to copy |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||