Add a spell to a campaign's allowlist
play_add_campaign_spellAdd a vault spell to a campaign's allowlist. The spell always lands on the leg matching the SPELL's own ruleset — the campaign must have a leg for that ruleset or play answers 400. The optional ruleset param never retargets; it only confirms the expected leg, and a mismatch answers 400. Caller must be the campaign's owner, a gamemaster or player with an accepted seat (watchers excluded), or an admin with Admin Mode on.
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": {
"campaignId": "<campaignId>",
"spellId": "<spellId>"
},
"name": "play_add_campaign_spell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleset | No | Optional confirmation of the target leg's ruleset. The entity always lands on the leg matching its OWN ruleset — this param never retargets; when present, play verifies it matches that leg and answers 400 on a mismatch. Omit unless you want the placement double-checked. | |
| spellId | Yes | Vault document id (`spellId`). Required. | |
| campaignId | Yes | Campaign id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||