attack
Command a selected unit to engage a specified target unit, initiating combat.
Instructions
让指定单位攻击指定目标单位。
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>",
"target_id": "<target_id>"
},
"name": "attack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit_id | Yes | ||
| target_id | Yes |