Patch managed documentation
project_doc_patchUpdate managed documents by patching specific frontmatter fields and body. Use a revision token to avoid overwriting concurrent edits; repository files stay read-only.
Instructions
Patch a managed document using optimistic concurrency. Indexed repository docs are intentionally read-only through this tool — edit those files directly.
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. |