Skip to main content
Glama

append_to_note

Add content to the end of an existing note in Obsidian vaults. Specify the note path and text to append, with optional newline formatting.

Instructions

Append content to the end of an existing note

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRelative path to the note
contentYesContent to append
ensureNewlineNoEnsure content starts on a new line (default: true)

Implementation Reference

  • The actual logic for appending content to a file.
    export async function appendToNote(
      vaultPath: string,
      relativePath: string,
      content: string,
    ): Promise<void> {
      const fullPath = resolveVaultPath(vaultPath, relativePath);
      const existing = await fs.readFile(fullPath, "utf-8");
      const separator = existing.endsWith("\n") ? "" : "\n";
      await fs.writeFile(fullPath, existing + separator + content, "utf-8");
    }

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