Parse a mana cost
parse_mana_costParse a mana cost string (like '2WW' or '{X}{R}') to obtain its canonical form, converted mana cost, colors, and color identity. Use for validating and analyzing Magic: The Gathering mana costs.
Instructions
Parse a mana cost string (e.g. 'RUW', '2WW', '{X}{R}') and return its canonical form, converted mana cost, colors, and color identity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Mana cost string, e.g. '2WW' or '{X}{U}{U}'. |