delete_section
Remove a specific section by ID or heading from a Markdown document. Automatically saves changes if enabled and ensures document integrity with optional backup and validation.
Instructions
Delete a section by ID or heading.
The document will be saved after the operation if successful and auto_save is True.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
auto_save | No | ||
backup | No | ||
document_path | Yes | ||
heading | No | ||
section_id | No | ||
validation_level | No | NORMAL |
Input Schema (JSON Schema)
{
"properties": {
"auto_save": {
"default": true,
"title": "Auto Save",
"type": "boolean"
},
"backup": {
"default": true,
"title": "Backup",
"type": "boolean"
},
"document_path": {
"title": "Document Path",
"type": "string"
},
"heading": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Heading"
},
"section_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Section Id"
},
"validation_level": {
"default": "NORMAL",
"title": "Validation Level",
"type": "string"
}
},
"required": [
"document_path"
],
"title": "delete_sectionArguments",
"type": "object"
}