Edit section
edit_sectionRevise a draft guide section by replacing whole Markdown content or one exact substring, optionally updating its title or description. Requires the draft edit lock.
Instructions
Edit a draft section by whole-section replacement (content) or exact substring replacement (old_string + new_string; old_string must occur exactly once). Optionally update title/description. Draft-only; this server process must hold the draft's edit lock.
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": {
"guide_id": "<guide_id>",
"section_id": "<section_id>"
},
"name": "edit_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional new title. | |
| content | No | New full Markdown content (whole-section replacement). Do not combine with old_string/new_string. | |
| guide_id | Yes | Guide id (g_...). | |
| new_string | No | Replacement text for old_string (may be empty). Required with old_string. | |
| old_string | No | Exact substring to replace. Must occur exactly once in the current section. | |
| section_id | Yes | Section id (s_...). | |
| description | No | Optional new one-line description. |