update_doc
Replace the entire content of a document in molt-mcp's encrypted markdown hosting service. Use this tool to update document content with new markdown, requiring a write key and optional version ETag to prevent conflicts.
Instructions
Replace a document's entire content with new content. Requires write key. The API will return 403 if a read key is used.
Args: doc_id: UUID of the document to update content: New markdown content (replaces existing content) if_match: Optional - version ETag (e.g., 'v5') to prevent conflicts
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": {
"doc_id": "<doc_id>",
"content": "<content>"
},
"name": "update_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| content | Yes | ||
| if_match | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |