draw_path
Draw a path, road, or river through a list of woxel points on a battle map, with optional curve smoothing, width scaling, and fades or tapers at the ends.
Instructions
Draw a path/road/river through a list of [x, y] woxel points. Returns the new element id.
asset: a Paths asset path from list_assets(category='Paths').
smoothness: optional curve smoothing. width: optional width scale multiplier.
A wall-textured path looks like a wall but carries no line of sight into a
VTT export. Where vision matters, run a real draw_wall along it too.
End treatments, which are what make a path read as part of the world rather
than a strip laid on top of it:
fade_in / fade_out: the path's opacity fades at its start / end. Use where a
trail should disappear into undergrowth or run off the map edge, instead
of stopping at a hard rectangular cut.
grow / shrink: the path's WIDTH tapers at its start / end. A stream that
narrows upstream, a track that widens as it approaches a gate.
Set these per path, here: changing the PathTool's own options beforehand
does not affect what this draws.
snap: 'none', 'grid' or 'auto'; see get_snap_settings.
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>",
"asset": "<asset>"
},
"name": "draw_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grow | No | ||
| snap | No | ||
| asset | Yes | ||
| layer | No | ||
| width | No | ||
| points | Yes | ||
| shrink | No | ||
| fade_in | No | ||
| sorting | No | ||
| fade_out | No | ||
| smoothness | No |