paint_path
Paints a continuous road or trail along a polyline for Dungeondraft battle maps, producing a uniform terrain ribbon in one call instead of many separate dabs.
Instructions
Paint a continuous terrain stroke (a road/trail) along a polyline in one call.
asset is a TERRAIN asset, not a Paths one — this paints ground, it does not
lay a Paths element. Use draw_path for that.
points: a list of [x, y] woxel corners the path runs through (>= 2). The
bridge rasterizes a uniform ribbon of constant width by measuring each
pixel's distance to the nearest segment, so the route comes out smooth with
clean edges — no gaps or double-painted overlaps. Prefer this over stamping
many paint_terrain dabs for any line/road.
radius: half-width of the stroke in woxels. rate: peak strength 0..1 with a
soft falloff to the edges so it blends. asset: optional Terrain asset to
assign to the slot first (else set it with set_terrain_slot). Undoable.
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": {
"points": "<points>"
},
"name": "paint_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | ||
| slot | No | ||
| asset | No | ||
| points | Yes | ||
| radius | No |