add_tree
Build a procedural tree with Sapling presets, adjustable height, seed, and branch levels; if headless Sapling yields no renderable geometry, it builds a pine fallback so the tree always renders.
Instructions
Procedural tree via the bundled Sapling Tree Gen extension (enabled headless on demand). preset: a Sapling preset name such as "Douglas Fir", "Small Pine", "White Birch" - unknown presets fall back to the generic broadleaf default. height: metres; 0 keeps the preset's natural size. seed: variation. levels: branch recursion (2 fast, 3 normal). Returns the parent EMPTY; the trunk is a bevelled curve and the leaves a mesh, both parented to it, so move/rotate/scale the EMPTY. SELF-CHECK: if Sapling yields no renderable geometry (known on headless 5.3: 0-vert leaf mesh and a bare Curves object), the tool removes it and builds a procedural pine instead - the result always renders. The 'engine' field in the return says which path produced the tree.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Tree | |
| seed | No | ||
| height | No | ||
| leaves | No | ||
| levels | No | ||
| preset | No | ||
| location | No |