Edit a section
edit_sectionFix errors by replacing a specific article section with corrected Markdown, using an expected revision to prevent overwriting concurrent edits.
Instructions
Replace one section of an article with corrected Markdown. Preferred over creating a duplicate topic when you find an error. Pass expected_revision (from read_topic) to avoid clobbering a concurrent edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Topic slug to edit | |
| editor | No | Attribution name (defaults to $SMARTIPEDIA_EDITOR) | |
| content | Yes | New Markdown content for that section | |
| section | Yes | Heading text of the section to replace (case-insensitive) | |
| edit_summary | No | Brief description of what you changed and why | |
| expected_revision | No | revision_number from read_topic; the edit is rejected if the article moved on |