update_document
Replace the entire content of an existing mdshare document using either a local file path or inline markdown text. Use file_path for documents already on disk to avoid content transmission.
Instructions
Update the content of an existing mdshare document (full replace). Requires edit or admin permission. If the document is in this MCP server's local store, 'key' is optional. PREFER file_path over content for files already on disk — reads directly from disk without transmitting content through this conversation. If both file_path and content are provided, file_path wins. For small edits to large documents, consider patch_document instead — keeps version history granular.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | Document ID | |
| key | No | Edit or admin key. Optional if the document is in this MCP server's local store. | |
| file_path | No | Absolute path to a local markdown file. PREFERRED for any file already on disk — bypasses inline content transmission entirely. | |
| content | No | Inline markdown content (full document body). Only use for short content composed in the conversation. For files on disk, use file_path instead. | |
| author | No | Your name (for edit attribution) |