Skip to main content
Glama

update_frontmatter

Modify metadata properties in Obsidian notes while preserving the main content, using JSON-formatted updates for structured data management.

Instructions

Update frontmatter properties of a note without changing the body content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRelative path to the note
propertiesYesJSON string of key-value pairs to set in frontmatter

Implementation Reference

  • The actual implementation of `updateFrontmatter` that parses markdown, merges updates into the frontmatter, and reconstructs the markdown string.
    export function updateFrontmatter(
      content: string,
      updates: Record<string, unknown>,
    ): string {
      const parsed = matter(content);
      const merged = { ...parsed.data, ...updates };
      return matter.stringify(parsed.content, merged);
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rps321321/obsidian-mcp-pro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server