Update a page
play_update_pageUpdate a page by id. PUT semantics — supplied fields replace their current values. To append to a recap body, fetch first via play_get_page, concatenate, and send back. Caller must have page 'contribute' permission. REQUIRES baseUpdatedAt: copy updatedAt from a fresh play_get_page read; a stale or fabricated value is rejected with OUT_OF_SYNC and nothing is written — writing from memory of an earlier read is not possible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Mongo `_id` of the page to update. | |
| ref | No | What the page is attached to. Required for character notes; optional for free-form pages. Allowed on update too (Mongoose has no immutability constraint), though re-anchoring a page is unusual. | |
| link | No | URL-safe slug. Lowercase letters, numbers, and hyphens only. | |
| name | No | Page name / title. | |
| active | No | ||
| public | No | ||
| summary | No | Short page summary. Max 255 characters. | |
| keywords | No | Comma-separated keyword string. | |
| promptId | No | Mongo `_id` reference (24-character hex string). | |
| description | No | Markdown body. | |
| documentType | No | What kind of page this is. Defaults to 'generic'. Use 'player-recap' for a session recap. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||