Declare a build goal
set_goalDeclare what you intend to build in this space. Persists across brain resets. Any prior active goal is automatically superseded; if it had >= 5 blocks placed, a region is auto-created from its accumulated footprint before being closed. Returns {ok, goalId}. Call this ONCE when you start a new structure, before placing any blocks. Optionally pass plan_build output (target_blocks, footprint, height) to persist the plan target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space | Yes | ||
| height | No | Planned height in cells from plan_build. | |
| footprint | No | [w, d] footprint in cells from plan_build. | |
| description | Yes | What you plan to build, e.g. "a stone tower with stairs". This becomes the region name if auto-created. | |
| target_blocks | No | Total planned blocks from plan_build.target_blocks. |