Wait for and read sub-catchments
get_sub_catchmentsRead a project's sub-catchment sets and versions, or inspect one set's nodes, facts, reaches, links, boundaries, and proposals for catchment review.
Instructions
Read sub-catchments. Without sub_catchments_id: the project's sets (of one line, with delineation_id), each with its
versions. With it: one set, waiting while it is created on cloud compute: its nodes (each with its total catchment's
facts; a diverted point says the node its water goes on to, diverted_to), sub-catchments (id, label, where its
label sits as label_point, the node it drains to, area, facts and its 'can share water' notes with their ids),
reaches and links with their facts (a diversion's: area arriving, length, fall, slope, drain depth), the dragged
boundaries and their state (waiting, in the terrain, kept as drawn), the proposals waiting for a person, and
sentences to relay (for example 'The line has run again since these were created.', or 'Diversions changed in
step 2. Take the diversions in.', which never holds a confirm). Each fact's unit, definition and source is given
once, in fact_definitions. Shapes stay on the map, except the outlines you ask for with outlines_of, and the
streams a divide goes on with streams_of (aim a divide at one). timed_out is normal: read again later. Read-only.
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>"
},
"name": "get_sub_catchments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | With sub_catchments_id: read this version number (default: the draft, else the latest) | |
| project_id | Yes | The project ID | |
| streams_of | No | With sub_catchments_id: the sub-catchments whose streams to include (GeoJSON MultiLineString in lon/lat, as `streams`): the streams a divide goes on, as the map draws them. Every sub-catchment then says `has_stream` (false: no stream to divide on; add a forced point instead). At most 10. | |
| outlines_of | No | With sub_catchments_id: the sub-catchments whose outlines to include (GeoJSON in lon/lat, as `outline`), for example the two either side of a boundary you want to propose moving. At most 10. | |
| delineation_id | No | Without sub_catchments_id: list the sets of this line | |
| timeout_seconds | No | With sub_catchments_id: how long to wait while they are created on cloud compute before returning `timed_out` (default 110, ceiling 110). 0 = one read. | |
| sub_catchments_id | No | One set to read: its `sub_catchments_id` | |
| poll_interval_seconds | No | Seconds between polls (default 5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||