docs_write
Create or update a note in a docs suite, matched by source URL or path. Creates missing notes with required metadata and skips writes when content is unchanged.
Instructions
Create or update one note of a docs suite. Only zones with mode "docs" accept it.
Finds the note by source, else by path. A missing note is created at path (it must not exist, and fields must bring title, type, status, lang and tags; created and updated default to today). A body with the same hash as the current one is not rewritten; a new body or changed fields set updated to today unless fields has it. fields={"suite": {...}} replaces the whole manifest mapping (upstream, include, context7, synced). The result is checked against the suite schema (invalid_schema); string values in fields that look like a credential are refused; the body is not scanned. Pages are never deleted: mark a gone one with fields={"status": "deprecated"}. Returns JSON {"path", "created", "changed", "hash"}; changed false means nothing was written.
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": {
"suite": "<suite>"
},
"name": "docs_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Page text as downloaded, without frontmatter. Omit to keep it. | |
| path | No | Path inside the suite, ending in .md; README.index.md is the manifest. Needed to create a note. | |
| suite | Yes | Docs zone: its path ("docs/mise") or its last segment ("mise"). | |
| fields | No | Frontmatter keys to merge; null deletes a key. | |
| source | No | Page URL; finds the note before path does. |