Edit a Markdown Document
edit_articleApply anchored edits through mdedit's authoritative ordinary or collaborative document service. Edits can update an existing live public link or enabled publication sync. Accepts natural workspace names and document titles; internal routing identifiers are optional.
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": {
"commandId": "<commandId>",
"operations": "<operations>",
"context": "<context>"
},
"name": "edit_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | Describe the user's underlying goal in one sentence. Do not include private document content, credentials, or personal information. | |
| articleId | No | Internal document identifier when already available. Omit it when the user referred to the document by title. | |
| commandId | Yes | Globally unique UUID for this logical document edit. Generate it once and reuse the exact value if the tool call is retried. | |
| operations | Yes | ||
| workspaceId | No | Optional workspace ID to narrow document lookup. Omit when the document title or ID uniquely identifies a document across authorized workspaces. | |
| articleTitle | No | Human-visible document title. Prefer this over asking the user for an internal document identifier. | |
| ifContentHash | No | ||
| workspaceName | No | Optional workspace name to narrow document lookup. A unique document title can be used without a workspace choice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| result | Yes | ||
| content | Yes | ||
| articleId | Yes | ||
| contentHash | Yes | ||
| workspaceId | Yes |