update_document
Edit an existing document by passing only fields to change; omitted fields stay unchanged. Content replaces the whole Markdown body, so read first. Re-indexes the document for AI search.
Instructions
Edit an existing Meet Rupert document. Any field you omit is left unchanged — pass only what you want to change. content (Markdown) replaces the entire document body, so read_document first if you're making a partial edit. Each update snapshots a new version and re-indexes the document for AI search. Returns the updated document's id and state. Because content replaces the whole body, any attachment:// ref you drop from it removes that image from the document — preserve the refs read_document gave you. Add new images via create_attachment, never by pasting image data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | New title. Omit to keep the current title. | |
| content | No | New body as Markdown, replacing the existing content. Omit to keep the current content. (Read the document first if you intend to make a partial edit — this replaces the whole body.) read_document returns existing images as `` refs; keep those refs in the text you send back or the images will be removed from the document. To add a new image, call create_attachment and insert its markdownRef — never paste image data or base64 here. | |
| published | No | Set true to publish (make AI-searchable) or false to unpublish (draft). Omit to keep the document's current published/draft state. | |
| documentId | Yes | The document's UUID (as returned by search_documents). | |
| categoryIds | No | Optional list of category UUIDs (from list_categories). On create/update, tags the document. On ask tools, restricts retrieval to these categories. |