calc_damage
Calculates simplified single-target Pokémon physical or special damage estimates from stats, move type, power, category, and optional modifiers; use for quick battle calculations, not full simulation.
Instructions
Regular single-target physical/special damage. No new fields: exact 0.2.0 numeric compatibility. Any new field enables Gen IX modifiers and stepwise rounding. useAbilities=true selects each species' first non-hidden ability; attackerAbility/defenderAbility override (auto/none/API identifier). Weather is current state, not inferred from setters. Explicit move type/power required. 仍未计入项:烧伤、反射壁/光墙/极光幕、双打/多目标、特殊招式机制(太晶威力下限/太晶爆发/多段/固定伤害等)、星晶、未列出的特性/道具、场外持续伤害与回血、极端数值溢出;不是完整对战模拟。
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": {
"attacker": "<attacker>",
"defender": "<defender>",
"moveType": "<moveType>",
"power": "<power>",
"category": "<category>"
},
"name": "calc_damage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hpEV | No | ||
| hpIV | No | ||
| item | No | ||
| level | No | ||
| power | Yes | ||
| attack | No | ||
| defense | No | ||
| terrain | No | ||
| weather | No | ||
| attacker | Yes | ||
| category | Yes | ||
| critical | No | ||
| defender | Yes | ||
| moveName | No | ||
| moveType | Yes | ||
| priority | No | ||
| teraType | No | ||
| currentHP | No | ||
| useAbilities | No | ||
| attackerAbility | No | ||
| defenderAbility | No | ||
| attackerGrounded | No | ||
| defenderGrounded | No | ||
| defenderTeraType | No |