upgrade_unit
Upgrade a unit to its next type by spending gold and remaining movement, provided the required technology is known.
Instructions
Upgrade a unit to its next type (e.g. Slinger -> Archer).
Args:
unit_id: The unit's composite ID (from get_units output)
Requires the right technology, enough gold, and the unit must have
moves remaining. The unit's movement is consumed by upgrading.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |