Update document
update_documentUpdate an mdgen document by ID, changing only specified fields such as title, markdown, or mode while preserving all other content.
Instructions
Update a document by id. Only the provided fields change; others are preserved.
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": {
"id": "<id>"
},
"name": "update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id | |
| mode | No | New output mode | |
| title | No | New title | |
| markdown | No | New Markdown body |