Patch Doc Section
patch_doc_sectionReplace only one Markdown section (by heading) instead of the whole doc.
Pass expected_version (the version you read), or section_hash (sha256 of the
section body you read; GET /v1/documents/{key}/sections lists them). Either
way only your section must be unchanged: with rebase=true (the default) a
newer version whose change is elsewhere is merged (rebased=true in the
result); if your section changed you get 409 rebase_conflict with the base,
current and proposed text, or section_conflict in section_hash mode.
rebase=false refuses any newer version (409 version_conflict). The response
is compact unless include_content=true.
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": {
"doc_key": "<doc_key>",
"section_heading": "<section_heading>",
"new_markdown": "<new_markdown>"
},
"name": "patch_doc_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | ||
| rebase | No | ||
| doc_key | Yes | ||
| new_markdown | Yes | ||
| section_hash | No | ||
| idempotency_key | No | Optional. Retries with the same key and arguments within 24 h replay the first result (replayed=true) without a second write; a different body with the same key is idempotency_key_reused. | |
| include_content | No | ||
| section_heading | Yes | ||
| expected_version | No | ||
| session_batch_id | No | ||
| return_current_on_conflict | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||