insert_under_heading
Insert content under a specific heading in an Obsidian note, adding text to a targeted section without modifying the rest.
Instructions
Insert content under a specific heading in a note. Useful for adding content to specific sections without modifying the rest.
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": {
"path": "<path>",
"heading": "<heading>",
"content": "<content>"
},
"name": "insert_under_heading"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the note. | |
| content | Yes | Content to insert. | |
| heading | Yes | The heading text to insert under (without # symbols). | |
| headingLevel | No | Heading level to use if creating (default: 2 for ##). | |
| createHeadingIfMissing | No | Whether to create the heading if it doesn't exist. |