Get ability data
get_abilityLook up an ability's effect text, flags, and generation availability to verify ability interactions before calculating damage or speed.
Instructions
Get one ability's effect text, flags, and the generations it exists in. Use it before relying on an ability in damage or speed reasoning; the set inputs of calculate_damage and check_speed take the ability or item name and apply it themselves. Accepts ability names case-insensitively; unknown abilities return an isError with near matches. Read-only and offline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ability | Yes | Ability name, e.g. "Intimidate", "Protosynthesis". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gen | Yes | Generation the ability was introduced in; 0 for the "No Ability" placeholder. | |
| num | Yes | Ability number in the dataset; 0 for abilities that have none. | |
| desc | Yes | Full effect description. | |
| name | Yes | Ability name, e.g. "Intimidate". | |
| flags | Yes | Flags the ability carries, as {"<flag>": 1}; any flag not listed does not apply. Possible keys: "breakable", "cantsuppress", "failroleplay", "failskillswap", "noentrain", "noreceiver", "notrace", "notransform". | |
| shortDesc | Yes | One-line effect summary. | |
| isNonstandard | Yes | "Past", "Future", "Unobtainable", or "CAP" when the ability is not available in the current games; null when it is standard. |