Read/write to local Obsidian vaults, create wiki-links, and explore note graphs.
cortex plugin install marketplace:cortex-plugin-obsidian
cortex plugin install github:CortexPrism/cortex-plugin-obsidian
cortex plugin install ./manifest.jsonRead a note from the vault.
Parameters:
path(string, required) — Path to note relative to vault rootvault_path(string, optional) — Override default vault path
Write or update a note.
Parameters:
path(string, required) — Path to note relative to vault rootcontent(string, required) — Note content (Markdown)frontmatter(string, optional) — JSON string of frontmatter key-values
Search notes in the vault.
Parameters:
query(string, required) — Search querymax_results(number, optional, default 20) — Maximum resultssearch_content(boolean, optional, default true) — Search note content
List notes in a directory.
Parameters:
directory(string, optional, default "/") — Directory relative to vault rootrecursive(boolean, optional, default false) — List recursivelypattern(string, optional) — Glob pattern
Create wiki-style links between notes.
Parameters:
from_note(string, required) — Source note pathto_note(string, required) — Target note pathalias(string, optional) — Display alias
Get the note graph (linked notes).
Parameters:
root_note(string, optional) — Root note to start frommax_depth(number, optional, default 2) — Maximum traversal depth
{
"plugins": {
"cortex-plugin-obsidian": {
"enabled": true,
"config": {
"vaultPath": "/home/user/vault",
"defaultVaultPath": "/home/user/vault",
"autoCreateLinks": false
}
}
}
}tools— Provides tool implementationsfs:read— Reads notes from the vaultfs:write— Writes notes to the vaultfs:list— Lists notes in directories
MIT — See LICENSE file