upgrade_unit
Upgrade a unit to its advanced form, like Slinger to Archer, when technology and gold allow. The upgrade consumes the unit's remaining movement, so plan carefully.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"unit_id": "<unit_id>"
},
"name": "upgrade_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |