add-feature
Add a feature, spell, or ability to a D&D 5e actor by importing from official compendiums or authoring custom content.
Instructions
Add a feature/spell/ability to an existing actor (NPC or PC). Set mode: • 'compendium-features' — import named class/monster features from an official compendium (PREFERRED for official content, e.g. Pack Tactics, Multiattack, Spellcasting). Params under compendiumFeatures. • 'feature' — author a feature/attack/spellcasting setup/spells from scratch (use only when not available in a compendium). Params under feature (select feature.featureType). • 'items' — attach world items by raw data. For real GEAR prefer import-item (copy from a compendium, keeps art+stats) or add-item (author); use this mode only for free-form item data. Params under items[]. actorIdentifier (exact name or ID) is always required — find it with list-actors / get-actor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Which granting path to use. 'compendium-features' (preferred) imports named features from a pack; 'feature' authors one from scratch; 'items' attaches world items. | |
| items | No | World items to attach when mode='items'. Each needs a name and a valid dnd5e item type (e.g. 'weapon', 'equipment', 'consumable', 'feat'); pass system-specific data via system. | |
| feature | No | Parameters when mode='feature' — author a feature/attack/spellcasting/spells. Select feature.featureType; actorIdentifier is taken from the top level. | |
| actorIdentifier | Yes | Target actor (exact name or ID). | |
| compendiumFeatures | No | Parameters when mode='compendium-features' — import named features from a compendium pack. actorIdentifier is taken from the top level. |