add_section
Insert a new section into a Markdown file. Specify placement under, before, or after an existing section, or append at the end.
Instructions
Insert a new section into a Markdown file.
heading must start with 1–6 '#' characters followed by a space, e.g. "## New Section".
content is the body text (no heading line).
Placement: exactly one of under, before, after may be set, or all None to append.
under: insert as the last child of the named sectionbefore: insert immediately before the named sectionafter: insert immediately after the named section (and all its children) Returns "ok" on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| under | No | ||
| before | No | ||
| content | Yes | ||
| heading | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |