get_legal_actions
Retrieve legal actions for your unit: movable tiles, attackable enemies, healable allies, and wait option. Works only on READY or MOVED status units. Call before issuing move, attack, heal, or wait to avoid errors.
Instructions
Read-only. Return all legal actions for one of your units this turn: movable tiles, attackable enemy unit_ids, healable ally unit_ids, and whether wait is available. Only works on your own units in READY or MOVED status; returns an error for enemy units or units that have already acted. unit_id is the string identifier from get_state. Call this before issuing move, attack, heal, or wait to avoid illegal-action errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | ||
| unit_id | Yes |