Wait for and read a delineation
get_delineationReads a catchment delineation and waits for its job to finish, returning outcome, phase, catchment names, chainages, areas and warnings; call again if it times out.
Instructions
Read a delineation and wait for its job, the way get_terrain_merge waits for a merge.
Returns outcome (ready | error | timed_out), phase (the job's step, then ready or error) and, once there is a
result: the catchment names, each chainage as CH k+mmm with distance_m beside it, areas (saying when one is a
lower bound), arrives_ha, the arrival point, diversion suggestions (information only), the diversions a person
applied and any marked check again, every warning as its sentence, which neighbours share water, how it was made and
whether a person confirmed it, the working and terrain resolution and the tally. timed_out is normal: call again;
it never starts a second job. resolution says plainly whether the result is a 'fast screen (low resolution)' (a
first look: say so, and offer High resolution before the person relies on it; its profile is not available) or
'high resolution'; shown_result carries the API's fields (mode quick or full, fast_screen, label). A High
resolution copy of a line says which line it came from (derived_from). full_run reports a High resolution run's
progress, elapsed time, expected finish, where it runs and whether it was handed to Batch. drainage_analysis says
whether the terrain's drainage analysis is being prepared (the run waits for it) or out of date (the next run works it
out again), with the sentence to relay. 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>",
"delineation_id": "<delineation_id>"
},
"name": "get_delineation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project ID | |
| delineation_id | Yes | `delineation_id` from delineate_catchments | |
| timeout_seconds | No | How long this call keeps polling before it returns `timed_out` (default 110, ceiling 110). 0 = one read, no waiting. | |
| wait_for_full_run | No | False (default): a result already shown is returned as `ready` at once even while a High resolution run goes over it (a high resolution line run again), with that run's progress in `full_run`. True: also wait (bounded) for it; a `timed_out` read is normal, since it can take many hours: read again later, do not wait in a loop. (High resolution over a fast screen runs on a COPY of the line: read the copy's own id.) | |
| poll_interval_seconds | No | Seconds between polls (default 5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||