Update a page
update_pageReplace a Folio Wiki page's entire Markdown body, optionally using baseRevision to prevent overwriting concurrent edits. If the page changed, the write is refused with a revision conflict.
Instructions
Replaces a document page's WHOLE body markdown; it is not a merge. Pass baseRevision (the bodyRevision read_page returned) to protect against a stale read: if the page changed since, nothing is written and the call fails with revision_conflict and the current revision; read the page again, apply the change to the current text and retry. Without baseRevision the write is unconditional and replaces anything typed into the page after you read it (the replaced text is kept in a backup). Underline is written ++text++, never <ins>/<u>. Does NOT support data tables — a table has no single body to replace; use folio_table_insert/folio_table_update/folio_table_add_column instead. Requires a write-scoped token. In a space set to review mode the page is NOT changed: the answer is status 'proposed' with a proposalId, the new text applies when an editor accepts it, and you must not repeat the call (a new call replaces your open proposal).
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>",
"markdown": "<markdown>"
},
"name": "update_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Page id | |
| markdown | Yes | New body markdown (the whole page) | |
| baseRevision | No | The bodyRevision from read_page. If the page has changed since, the write is refused with revision_conflict. Omit for an unconditional replace |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Page id | |
| icon | No | Emoji icon, if the page has one | |
| kind | No | Page kind: doc, board, table, form, base, canvas, artifact, pdf or office | |
| path | No | Path relative to the space root | |
| cover | No | Cover image URL, if the page has one | |
| order | No | Position among its siblings | |
| space | No | Space slug the page belongs to | |
| title | No | Page title | |
| status | No | Page status | |
| message | No | Review mode only: what happened and what to do next | |
| updatedAt | No | Last change, ISO timestamp | |
| proposalId | No | Review mode only: id of the proposal that was queued instead of writing the page |