cpu_upgrade
Upgrade a building on a Land cell you own to a target type from the current catalog. Requires an active session; pays the full configured $CPU build cost and starts a new construction timer.
Instructions
Upgrade the building on a Land cell you own to a dynamically configured target type — needs a session (cpu_authenticate first). Pick targetBuildingType from the current catalog (cpu_get_game_config): only upgraded entries (those with a predecessor) are valid targets — a base building belongs to cpu_build. Costs the target's full configured $CPU build cost (auto-approved once); reuses the same on-chain placement as cpu_build, so it installs the target immediately and starts a new construction timer. The contract is the final authority on whether the target is a valid direct successor, on active processes, demolition cooldown, materials, and storage capacity — this tool does not pre-check any of them locally, so a stale local view never blocks a transaction the chain would accept. Deposits, liquid warehouse balances, and the selected mode survive the upgrade. Production and Hub functionality are unavailable until construction finishes; inspect progress with cpu_get_cell.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenId | Yes | The tokenId of a revealed cell you own whose current building to upgrade. | |
| targetBuildingType | Yes | The exact catalog `type` of the upgrade target, resolved dynamically against the current building catalog (see cpu_get_game_config) — not a static list. Must have a predecessor: a base building with no predecessor belongs to cpu_build instead. |