Update a play campaign
play_update_campaignPUT updates to one campaign by id. Caller must be the campaign's owner, an admin with Admin Mode on, or the campaign's GM (an accepted gamemaster). Play writes only name, summary, description, image, public, hideSections, dismissedSessionZeroNudge, xCardEnabled, showCreatureDetails, and autoRollInitiative, plus active for the owner or an admin with Admin Mode on, and ignores any other field; seats change only through the invite tools; making the campaign public needs Premium, VIP, or admin. Only supplied fields are sent. legs is NOT writable here (it is stripped): add a leg with play_add_campaign_leg, toggle one with play_set_campaign_leg_active, and change a leg's contents with the add/remove rule/item/spell/character tools. REQUIRES baseUpdatedAt: copy updatedAt from a fresh play_get_campaign read; a stale or fabricated value is rejected with OUT_OF_SYNC and nothing is written.
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": {
"id": "<id>",
"baseUpdatedAt": "<baseUpdatedAt>"
},
"name": "play_update_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Mongo `_id` of the campaign. | |
| name | No | Campaign name. | |
| image | No | Image URL. Stored as a plain string. | |
| active | No | ||
| public | No | Whether non-members can see the campaign. Making the campaign public needs Premium, VIP, or admin. | |
| summary | No | Short campaign summary. Max 150 characters. | |
| description | No | Full campaign description. Markdown supported. | |
| hideSections | No | ||
| xCardEnabled | No | ||
| baseUpdatedAt | Yes | REQUIRED proof that you are working from the latest version: copy the `updatedAt` value verbatim from a FRESH read of this exact record (use the matching get tool first). Values from memory, from an earlier conversation, or guessed timestamps are rejected with OUT_OF_SYNC and nothing is written. After a successful update, the response carries the new `updatedAt` — use that for any follow-up write. | |
| autoRollInitiative | No | Whether a token placed on the campaign's battlemaps gets its initiative rolled (a d20 plus its character's initiative bonus) when it joins the initiative order. Only tokens backed by a character in a ruleset with an initiative roll are rolled; every other token joins unscored. A battlemap rolls only when every one of its campaigns has this on. On by default. | |
| showCreatureDetails | No | Whether players see a creature's details (its health and armor class, per ruleset) at the top of a token's details on the campaign's battlemaps. A battlemap shows them only when every one of its campaigns has this on. Off by default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||