update_document
Modify an existing document's title or content. Replace or append text to update documents with corrections or new information.
Instructions
Modifies an existing document's title or content.
IMPORTANT: This tool replaces the document content rather than just adding to it. To update a document with changed data, you need to first read the document, add your changes to the content, and then send the complete document with your changes.
Use this tool when you need to:
Edit or update document content
Change a document's title
Append new content to an existing document
Fix errors or add information to documents
Note: For Mermaid diagrams, use mermaidjs (not mermaid)
as the code fence language identifier for proper rendering.
Args: document_id: The document ID to update title: New title (if None, keeps existing title) text: New content (if None, keeps existing content) append: If True, adds text to the end of document instead of replacing
Returns: Result message confirming update
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ||
| title | No | ||
| text | No | ||
| append | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |