patchNote
Insert or modify content in Obsidian notes relative to headings, block references, or frontmatter fields. Choose append, prepend, or replace operations for precise updates.
Instructions
Inserts content into an existing note relative to a heading, block reference, or frontmatter field.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | Content to be inserted or used for replacement | |
contentType | No | ||
operation | Yes | Operation to perform (append, prepend, or replace) | |
path | Yes | ||
target | Yes | Target identifier - For heading: Use a heading path string. For nested headings, use '::' as a delimiter (e.g., '## Heading 1 ### Subheading 1' must be 'Heading 1::Subheading 1'). The path should match the exact heading text. For headings with special characters, use URL encoding. - For block: Use the block ID (e.g., '2d9b4a'). - For frontmatter: Use the frontmatter field name (e.g., 'tags', 'date', 'title'). | |
targetDelimiter | No | ||
targetType | Yes | Type of target to patch (heading, block, or frontmatter) | |
trimTargetWhitespace | No |