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
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 |