delete_section
Delete a heading and its content from a Markdown file; optionally promote child sections when excluding them from deletion.
Instructions
Delete a section from a Markdown file.
With include_children=True (default): deletes the heading, its body, and all child sections. With include_children=False: deletes only the heading and its own body; child sections are promoted. Returns "ok" on success.
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": {
"file_path": "<file_path>",
"path": "<path>"
},
"name": "delete_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| file_path | Yes | ||
| include_children | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |