Preview an attack
preview_attackHow an attack by your piece fleet would go, against the enemy piece target or the enemy system planet (give one): from where it stands, or from tile x, y it would move to first (as an attack with x, y from legal_actions does). Changes nothing.
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": {
"fleet": "<fleet>",
"code": "<code>"
},
"name": "preview_attack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Preview from this tile, as if moved there first. -1: from where it stands. | |
| y | No | The tile's row, with x. | |
| code | Yes | The game's code (like K7M-3XQ), from the player's message. If it names none, get one from new_game rather than asking them. | |
| fleet | Yes | The attacking ship (one of yours). | |
| planet | No | An enemy system to attack. Give target or planet. | |
| target | No | An enemy ship to attack. Give target or planet. |