execute_combat_action
Execute combat actions like attack, heal, move, or cast spells in RPG encounters to resolve turn-based battles with structured mechanics.
Instructions
Execute a combat action (attack, heal, move, cast_spell, etc.).
Examples: { "action": "attack", "actorId": "hero-1", "targetId": "goblin-1", "attackBonus": 5, "dc": 12, "damage": 6 }
{ "action": "heal", "actorId": "cleric-1", "targetId": "hero-1", "amount": 8 }
{ "action": "move", "actorId": "hero-1", "targetPosition": { "x": 5, "y": 3 } }
{ "action": "disengage", "actorId": "hero-1" }
{ "action": "cast_spell", "actorId": "wizard-1", "spellName": "Fireball", "targetId": "goblin-1", "slotLevel": 3 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encounterId | Yes | The ID of the encounter | |
| action | Yes | ||
| actorId | Yes | ||
| targetId | No | Target ID for attack/heal/cast_spell actions | |
| attackBonus | No | ||
| dc | No | ||
| damage | No | ||
| damageType | No | HIGH-002: Damage type (e.g., "fire", "cold", "slashing") for resistance calculation | |
| amount | No | ||
| targetPosition | No | CRIT-003: Target position for move action | |
| spellName | No | CRIT-006: Name of the spell to cast (must exist in spell database) | |
| slotLevel | No | CRIT-006: Spell slot level to use (for upcasting) | |
| sessionId | No |