Divide, merge or move sub-catchments by hand
edit_sub_catchmentsAdjust draft sub-catchments manually by dividing, merging, moving nodes, adding forced points, or undoing edits; incorporate culverts and diversions without changing the confirmed version.
Instructions
Change sub-catchments by hand on the draft: divide a sub-catchment, merge two, move a node, add a forced point, undo a dragged boundary, or undo another edit made by hand (its seq), or take the culverts or the diversions in (the diversions: a preview first, then preview false). An edit after a confirm starts a new draft; the confirmed version never changes. The answer names the sub-catchments measured again. Ids change when an edit writes the draft again: read the set again with get_sub_catchments before the next edit.
make_link changes nothing: it is filed as a proposal a person accepts or rejects on the map. Tell the user it is
waiting and give them the link (ui_url). It is refused when filed if the link would make a loop, or if the water
of the two sub-catchments already ends up in one place (the read lists no note for such a pass). To propose a new
boundary, use propose_sub_catchment_boundary.
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>",
"sub_catchments_id": "<sub_catchments_id>",
"kind": "<kind>"
},
"name": "edit_sub_catchments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | For divide, move_node and add_forced_point: latitude (WGS84) | |
| lon | No | For divide, move_node and add_forced_point: longitude (WGS84) | |
| seq | No | For undo: the edit's `seq` (get_sub_catchments, version.hand_edits) | |
| kind | Yes | divide: a new node on the stream of the sub-catchment at lon/lat (it divides there; aim at a stream get_sub_catchments' streams_of gives); merge: two sub-catchments of one node, or one with the one its water runs into (sub_catchment_ids); move_node: node_id to lon/lat; add_forced_point: a node exactly at lon/lat; undo_drag: take back a dragged boundary (drag_id); undo: take back one other edit made by hand (seq, from the read's hand_edits), as the map's Undo last and History do; make_link: PROPOSE that a 'can share water' note (note_id) becomes a link, with a reason: a person accepts it on the map; take_culverts_in: when the read says 'Culverts have changed since these were created.', place the project's culverts as they are now (the draft is made again, its edits by hand kept; after a confirm, a new draft); take_diversions_in: when the read says 'Diversions changed in step 2.', make the sub-catchments again with the line's diversions as they are now, every edit made by hand made again (after a confirm, a new draft). It previews first (preview, default true). | |
| reason | No | For make_link: one or two sentences the person reads before accepting (what you saw, and why). | |
| drag_id | No | For undo_drag: the dragged boundary's `drag_id` | |
| node_id | No | For move_node: the node's id | |
| note_id | No | For make_link: the note's id (get_sub_catchments, a sub-catchment's notes) | |
| preview | No | For take_diversions_in: true (default) stores nothing and answers which edits are made again and which cannot be, each with its sentence; false takes the diversions in. | |
| node_kind | No | For add_forced_point: a forced point (default) or a culvert inlet | forced_point |
| project_id | Yes | The project ID (Editor rights) | |
| sub_catchment_ids | No | For merge: the ids of the two sub-catchments | |
| sub_catchments_id | Yes | The set to change: its `sub_catchments_id` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||