ad_create_character
Create a character from a full build object. Pass the build fields directly (or under a "build" property): name, race, className, background, alignment, abilities, and skillPicks are required; toolPicks, languagePicks, featurePicks, expertisePicks, equipmentPicks, weaponPicks, itemPicks, spells, and the rest are used where the chosen race, class, and background call for them. Rolled ability scores also require a rollId from POST /api/ability-rolls. An illegal build returns 400 with an {errors} list to fix and resubmit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Character name. | |
| race | Yes | Race (species) name, exactly as listed in the build options. | |
| build | No | Optional wrapper: the full build object. When present it is used instead of the top-level fields. | |
| rollId | No | Required when abilities.type is "rolled": the rollId returned by POST /api/ability-rolls. | |
| spells | No | Cantrips and spells known/prepared/spellbook, by name. | |
| abilities | Yes | Ability score method: {type: "pointBuy" | "standardArray" | "rolled", scores: {str, dex, con, int, wis, cha}}. | |
| alignment | Yes | Alignment, one of the nine listed in the build options. | |
| className | Yes | Class name, exactly as listed in the build options. | |
| itemPicks | No | Item name per equipment group id, for item choices. | |
| toolPicks | No | Tool proficiency picks, where the build calls for them. | |
| appearance | No | Optional appearance description. | |
| background | Yes | Background name, exactly as listed in the build options. | |
| skillPicks | Yes | Class skill proficiency picks (skill ids). | |
| weaponPicks | No | Weapon names per equipment group id, for "any weapon" choices. | |
| featurePicks | No | Level-1 class feature decisions keyed by choice id, e.g. {fightingStyle: "Defense"}. | |
| languagePicks | No | Language picks, where the build calls for them. | |
| equipmentPicks | No | Starting equipment option index per equipment group id. | |
| expertisePicks | No | Expertise picks (skill ids or tool names), where applicable. | |
| raceSkillPicks | No | Free skill picks granted by race, where applicable. | |
| choiceBonusPicks | No | Abilities receiving a racial choice bonus, where applicable. |