Save edits from the mdedit editor
save_article_contentComponent-only. Saves the full text buffer from the embedded mdedit editor as one minimal anchored edit. Content changes can update an existing live public link or enabled publication sync. Requires the content hash the editor last loaded; on a mismatch nothing is written and the latest content is returned so the editor can reconcile.
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": {
"workspaceId": "<workspaceId>",
"articleId": "<articleId>",
"commandId": "<commandId>",
"baseContentHash": "<baseContentHash>",
"content": "<content>",
"context": "<context>"
},
"name": "save_article_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| context | Yes | Describe the user's underlying goal in one sentence. Do not include private document content, credentials, or personal information. | |
| articleId | Yes | ||
| commandId | Yes | Globally unique UUID for this logical document edit. Generate it once and reuse the exact value if the tool call is retried. | |
| workspaceId | Yes | ||
| baseContentHash | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saved | Yes | ||
| content | Yes | ||
| conflict | Yes | ||
| unchanged | No | ||
| contentHash | Yes |