Plan a build (block counts + scale refs)
plan_buildPure compute over your declared parts: sums block counts, returns a parts checklist, and attaches scale references so you can judge your design before placing a single block. You declare the parts; this computes block counts + scale references. It does not invent geometry. Workflow: call plan_build first to get target_blocks + scale_refs, then call set_goal(description, target_blocks, footprint, height) to persist the plan — set_goal is where plan metadata is stored. Returns { target_blocks, parts_checklist, scale_refs, overlap_warning? }. goal_id is accepted but is a no-op in this tool; persistence happens via set_goal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parts | Yes | Declared parts. Each part has a name, role, and relative AABB. You declare ALL parts; plan_build only computes counts. | |
| space | Yes | ||
| style | No | Optional architectural style hint (for get_material_palette style lookup). | |
| height | Yes | Overall height in grid cells. | |
| goal_id | No | Accepted for forward-compatibility but currently a no-op. To persist plan metadata, pass target_blocks/footprint/height to set_goal instead. | |
| subject | Yes | What you plan to build, e.g. "a Korean palace gatehouse". | |
| footprint | Yes | [w, d] overall footprint in grid cells. |