insert_after_heading_fs_tool
Insert content after a specific heading in a note to add tasks, notes, or references directly under the relevant section.
Instructions
Insert content immediately after a specific heading in a note.
Finds the specified heading (case-sensitive) and inserts content on the line immediately following it. If multiple headings with the same text exist, content is inserted after the first occurrence.
When to use:
Adding tasks to a "Tasks" section
Inserting notes under a "Notes" heading
Appending content to specific sections
Building structured content programmatically
Performance:
10,000 word notes: < 500ms
Returns: Success status and descriptive message
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": {
"filepath": "<filepath>",
"heading": "<heading>",
"content": "<content>"
},
"name": "insert_after_heading_fs_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Path to note (relative to vault or absolute) | |
| heading | Yes | Heading text to insert after (without # symbols) | |
| content | Yes | Content to insert after the heading | |
| vault_path | No | Path to vault root (optional, uses OBSIDIAN_VAULT_PATH env if not provided) | |
| ctx | No |