Föreslå terräng
set_site_terrainPropose the WHOLE terrain of a saved design's plot in the agreed format (#574), as one site proposal the user approves like propose_changes. Metres in the saved local-site coordinate system: the same x/y origin as placement and boundary, x east, y north; do not subtract the plot minimum coordinates; z relative to the chosen local zero, or in the absolute system (e.g. RH 2000) of elevationReference. boundary is optional and closed (repeat the first corner last). contours are polylines [[x, y], ...] with one z per line (repeat the first point to close a ring); spotHeights are {id, point: [x, y, z]}; they mix freely. source is measured (survey or map: never moved, simplified or regenerated) or schematic (terrain you interpret or design on the user's request). Every element has an id. Only the format is checked: closed polygons, everything inside the plot, no duplicate ids, curves or spot heights. surface accepts a compact regular grid {grid:{origin:[x,y],spacing:[dx,dy],nx,ny,z:[...]}} with nx * ny supplied row-major heights, or an explicit mesh {vertices:[[x,y,z],...],triangles:[[i,j,k],...]} with zero-based indices and counterclockwise x/y winding, or the immutable shipped surface {reference:"serpentine-v2"}. The older serpentine-v1 reference keeps its original mesh. Grids use independent positive x/y spacing and a fixed SW–NE diagonal in each cell; their entire rectangular footprint stays inside the plot. No heights are inferred, smoothed or resampled. Supply any change to the shape of road benches, slopes or pond basins directly in the surface. Visual landscape features are proposed separately with shed.site.landscape.set. It replaces all contours, spot heights and the surface (omitting surface removes the old one); a plan that removes retained terrain, replaces surface layout or replaces an own plot’s retained corner identities or ring topology is destructive and the user confirms it. Moving retained corners alone is not destructive unless it removes terrain. Read and edit grid sections with get_site_terrain_sections/get_site_terrain_section and edit_site_terrain_section; read legacy meshes in bounded blocks. A full get_design_summary includeSurface:true read is optional and remains budgeted. Normal summaries omit inline geometry (surfaceOmitted:true); do not resend an incomplete summary as a whole replacement. Use edit_site_terrain to preserve the saved surface while changing other elements.
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": {
"designId": "<designId>",
"terrain": "<terrain>"
},
"name": "set_site_terrain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | Optional one-sentence description of the proposal, shown to the user. | |
| terrain | Yes | ||
| designId | Yes | designId from list_designs. |