Patch managed documentation
project_doc_patchPatch managed documents with optimistic concurrency. Validate expected revision to prevent overwriting concurrent edits.
Instructions
Patch a managed document using optimistic concurrency. Indexed repository docs are intentionally read-only through this tool — edit those files directly.
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>",
"changes": "<changes>"
},
"name": "project_doc_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Managed document to patch, e.g. DOC-0003. | |
| changes | Yes | Frontmatter fields to overwrite, plus body to replace the Markdown. Only the keys present are touched. Use project_doc_move to change the folder. | |
| expectedRevision | No | Revision string from an earlier read of this record. The write is refused if it no longer matches, so a concurrent edit is reported rather than overwritten. Omit to skip the check. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | A canonical record with its body, revision and reference graph. |