AACFlow

Obsidian

Interact with your Obsidian vault via the Local REST API

Usage Instructions

Read, create, update, search, and delete notes in your Obsidian vault. Manage periodic notes, execute commands, and patch content at specific locations. Requires the Obsidian Local REST API plugin.

Tools

obsidian_append_active

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
contentstringYesNo description

Output

ParameterTypeDescription
appendedbooleanWhether content was successfully appended

obsidian_append_note

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
filenamestringYesPath to the note relative to vault root (e.g. "folder/note.md")
contentstringYesNo description

Output

ParameterTypeDescription
filenamestringPath of the note
appendedbooleanWhether content was successfully appended

obsidian_append_periodic_note

Append content to the current periodic note (daily, weekly, monthly, quarterly, or yearly). Creates the note if it does not exist.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
periodstringYesNo description
contentstringYesNo description

Output

ParameterTypeDescription
periodstringPeriod type of the note
appendedbooleanWhether content was successfully appended

obsidian_create_note

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
filenamestringYesPath for the note relative to vault root (e.g. "folder/note.md")
contentstringYesNo description

Output

ParameterTypeDescription
filenamestringPath of the created note
createdbooleanWhether the note was successfully created

obsidian_delete_note

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
filenamestringYesNo description

Output

ParameterTypeDescription
filenamestringPath of the deleted note
deletedbooleanWhether the note was successfully deleted

obsidian_execute_command

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
commandIdstringYesID of the command to execute (use List Commands operation to discover available commands)

Output

ParameterTypeDescription
commandIdstringID of the executed command
executedbooleanWhether the command was successfully executed

obsidian_get_active

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description

Output

ParameterTypeDescription
contentstringMarkdown content of the active file
filenamestringPath to the active file

obsidian_get_note

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
filenamestringYesPath to the note relative to vault root (e.g. "folder/note.md")

Output

ParameterTypeDescription
contentstringMarkdown content of the note
filenamestringPath to the note

obsidian_get_periodic_note

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
periodstringYesNo description

Output

ParameterTypeDescription
contentstringMarkdown content of the periodic note
periodstringPeriod type of the note

obsidian_list_commands

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description

Output

ParameterTypeDescription
commandsjsonList of available commands with IDs and names
idstringCommand identifier
namestringHuman-readable command name

obsidian_list_files

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
pathstringNoNo description

Output

ParameterTypeDescription
filesjsonList of files and directories
pathstringFile or directory path
typestringWhether the entry is a file or directory

obsidian_open_file

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
filenamestringYesNo description
newLeafbooleanNoNo description

Output

ParameterTypeDescription
filenamestringPath of the opened file
openedbooleanWhether the file was successfully opened

obsidian_patch_active

Insert or replace content at a specific heading, block reference, or frontmatter field in the active file

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
contentstringYesNo description
operationstringYesNo description
targetTypestringYesNo description
targetstringYesTarget identifier (heading text, block reference ID, or frontmatter field name)
targetDelimiterstringNoDelimiter for nested headings (default: "::")
trimTargetWhitespacebooleanNoNo description

Output

ParameterTypeDescription
patchedbooleanWhether the active file was successfully patched

obsidian_patch_note

Insert or replace content at a specific heading, block reference, or frontmatter field in a note

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
filenamestringYesPath to the note relative to vault root (e.g. "folder/note.md")
contentstringYesNo description
operationstringYesNo description
targetTypestringYesNo description
targetstringYesTarget identifier (heading text, block reference ID, or frontmatter field name)
targetDelimiterstringNoDelimiter for nested headings (default: "::")
trimTargetWhitespacebooleanNoNo description

Output

ParameterTypeDescription
filenamestringPath of the patched note
patchedbooleanWhether the note was successfully patched

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
baseUrlstringYesNo description
querystringYesNo description
contextLengthnumberNoNo description

Output

ParameterTypeDescription
resultsjsonSearch results with filenames, scores, and matching contexts
filenamestringPath to the matching note
scorenumberRelevance score
matchesjsonMatching text contexts
contextstringText surrounding the match

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started