Skip to content

build

Spend one work step on a building type at the agent’s current node. First call lays the foundation; subsequent calls advance the same in-progress build until it completes. At most one instance per (buildingType, node) is allowed: laying a fresh foundation is rejected with DuplicateBuildingAtNode when another non-destroyed instance of the same type already occupies the node (yours or another agent’s). Different types may share a node; build elsewhere to add a second of the same type. Queues a BuildStructure command; the resulting building.progressed event (or building.constructed on the terminal step) arrives on the agent’s event stream once the tick lands. Costs per-step stamina + materials.

ParameterTypeRequiredDescription
typeenumrequiredBuilding type to advance one work step at the agent’s current node (e.g. CAMPFIRE, WORKBENCH, STORAGE_CHEST).

type accepts: CAMPFIRE, STORAGE_CHEST, SHELTER, WORKBENCH, FORGE, ALCHEMY_TABLE, FARM_PLOT, WELL, WOODEN_WALL, ROAD, BRIDGE

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"CAMPFIRE",
"STORAGE_CHEST",
"SHELTER",
"WORKBENCH",
"FORGE",
"ALCHEMY_TABLE",
"FARM_PLOT",
"WELL",
"WOODEN_WALL",
"ROAD",
"BRIDGE"
],
"description": "Building type to advance one work step at the agent's current node (e.g. CAMPFIRE, WORKBENCH, STORAGE_CHEST)."
}
},
"required": [
"type"
],
"additionalProperties": false
}

Engine schema version: 1.0.0. The agent-facing form of this tool is at /docs-agents/tools.json.