update_document
Update the title or content of an existing document, replace entire content, append new text, or convert between document and template.
Instructions
Modifies an existing document's title or content.
IMPORTANT: This tool replaces the document content
rather than just adding to it. For partial edits
(changing specific text), prefer the edit_document
tool instead.
Use this tool when you need to:
- Replace the entire document content
- Change a document's title
- Append new content to an existing document
- Convert a document to or from a template
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)
append: If True, adds text to end of document
instead of replacing
template: If True, converts to a template.
If False, converts a template back to a
regular document.
icon: Optional emoji character to use as the
document icon (e.g. "📋", "🚀"). If None,
keeps existing icon. Pass an empty string
to remove the icon.
Returns:
Result message confirming update
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | ||
| text | No | ||
| title | No | ||
| append | No | ||
| template | No | ||
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |