order_units
Issues up to 100 validated tasks to selected units in 0 A.D., including attack, gather, build, heal, patrol and trade; queued=true appends orders, false replaces prior tasks.
Instructions
Issue 1..100 tasks in order; queued=false replaces prior tasks, true appends.
Target tasks: attack (damage, no capture), capture, gather, repair (also foundations), garrison, occupy_turret, heal, guard, collect_treasure, return_resource and trade. Support and trade targets must be your own; treasure must be visible Gaia. Position tasks patrol and attack_move use world x/z. Build tasks use an allowed structure template plus world x/z and optional angle in radians. Every task is validated before any command is posted. Native placement, costs, diplomacy and pathing still apply. Accepted means submitted; observe later to verify the outcome. No formations are created.
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": {
"entity_ids": "<entity_ids>",
"orders": "<orders>"
},
"name": "order_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orders | Yes | ||
| queued | No | ||
| entity_ids | Yes |