battle_loop
Automatically complete a battle from start to finish, handling dice, card placement, emotion selection, and stuck detection. Returns victory, timeout, or not_in_battle status.
Instructions
Auto-play through an entire battle until it ends.
Handles: round-start dice, auto card placement, emotion card selection, phase stuck detection, and story skips (including BattleStoryPhase in suppression battles).
Emotion card strategy: calls get_emotion_candidates, picks the Positive card with highest emotionLevel. For smarter selection, the LLM can interrupt and call select_emotion_card manually.
Returns {"result": "victory"|"timeout"|"not_in_battle", "rounds": N}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_rounds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||