Obsidian
Interact with your Obsidian vault via the Local REST API
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.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
content | string | Yes | No description |
| Parameter | Type | Description |
|---|
appended | boolean | Whether content was successfully appended |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
filename | string | Yes | Path to the note relative to vault root (e.g. "folder/note.md") |
content | string | Yes | No description |
| Parameter | Type | Description |
|---|
filename | string | Path of the note |
appended | boolean | Whether content was successfully appended |
Append content to the current periodic note (daily, weekly, monthly, quarterly, or yearly). Creates the note if it does not exist.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
period | string | Yes | No description |
content | string | Yes | No description |
| Parameter | Type | Description |
|---|
period | string | Period type of the note |
appended | boolean | Whether content was successfully appended |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
filename | string | Yes | Path for the note relative to vault root (e.g. "folder/note.md") |
content | string | Yes | No description |
| Parameter | Type | Description |
|---|
filename | string | Path of the created note |
created | boolean | Whether the note was successfully created |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
filename | string | Yes | No description |
| Parameter | Type | Description |
|---|
filename | string | Path of the deleted note |
deleted | boolean | Whether the note was successfully deleted |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
commandId | string | Yes | ID of the command to execute (use List Commands operation to discover available commands) |
| Parameter | Type | Description |
|---|
commandId | string | ID of the executed command |
executed | boolean | Whether the command was successfully executed |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
| Parameter | Type | Description |
|---|
content | string | Markdown content of the active file |
filename | string | Path to the active file |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
filename | string | Yes | Path to the note relative to vault root (e.g. "folder/note.md") |
| Parameter | Type | Description |
|---|
content | string | Markdown content of the note |
filename | string | Path to the note |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
period | string | Yes | No description |
| Parameter | Type | Description |
|---|
content | string | Markdown content of the periodic note |
period | string | Period type of the note |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
| Parameter | Type | Description |
|---|
commands | json | List of available commands with IDs and names |
↳ id | string | Command identifier |
↳ name | string | Human-readable command name |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
path | string | No | No description |
| Parameter | Type | Description |
|---|
files | json | List of files and directories |
↳ path | string | File or directory path |
↳ type | string | Whether the entry is a file or directory |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
filename | string | Yes | No description |
newLeaf | boolean | No | No description |
| Parameter | Type | Description |
|---|
filename | string | Path of the opened file |
opened | boolean | Whether the file was successfully opened |
Insert or replace content at a specific heading, block reference, or frontmatter field in the active file
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
content | string | Yes | No description |
operation | string | Yes | No description |
targetType | string | Yes | No description |
target | string | Yes | Target identifier (heading text, block reference ID, or frontmatter field name) |
targetDelimiter | string | No | Delimiter for nested headings (default: "::") |
trimTargetWhitespace | boolean | No | No description |
| Parameter | Type | Description |
|---|
patched | boolean | Whether the active file was successfully patched |
Insert or replace content at a specific heading, block reference, or frontmatter field in a note
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
filename | string | Yes | Path to the note relative to vault root (e.g. "folder/note.md") |
content | string | Yes | No description |
operation | string | Yes | No description |
targetType | string | Yes | No description |
target | string | Yes | Target identifier (heading text, block reference ID, or frontmatter field name) |
targetDelimiter | string | No | Delimiter for nested headings (default: "::") |
trimTargetWhitespace | boolean | No | No description |
| Parameter | Type | Description |
|---|
filename | string | Path of the patched note |
patched | boolean | Whether the note was successfully patched |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | Yes | No description |
query | string | Yes | No description |
contextLength | number | No | No description |
| Parameter | Type | Description |
|---|
results | json | Search results with filenames, scores, and matching contexts |
↳ filename | string | Path to the matching note |
↳ score | number | Relevance score |
↳ matches | json | Matching text contexts |
↳ context | string | Text surrounding the match |