seekstone

v0.28.1
io.github.shaqmughal/seekstone Checked 34 minutes ago Published 3 days ago

Filesystem-direct Obsidian MCP server — search and edit your vault with low context-tax.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

query_notes

Structured metadata query — filter notes by frontmatter key/value predicates, tag, folder, modified time, and size. Returns compact rows (path + title by default; opt into more via select), not note content. Use this instead of search when filtering by properties rather than text.

ParameterTypeDescription
folderstringRestrict to a vault-relative folder prefix.
limitnumberMax results (1–500, default 100).
maxSizeBytesnumberOnly notes at most this many bytes.
minSizeBytesnumberOnly notes at least this many bytes.
modifiedAfterstringOnly notes modified at or after this ISO 8601 date/time.
modifiedBeforestringOnly notes modified before this ISO 8601 date/time.
orderstringSort order (default asc).
selectarrayExtra fields per hit: frontmatter keys, or "mtime", "size", "tags". Default returns only path + title.
sortstringSort field (default path).
tagstringRestrict to notes with this tag. # optional, case-insensitive; nested child tags match ("project" matches project/alpha).
wherearrayFrontmatter predicates — all must match (AND).

context_pack

Assemble everything needed to ANSWER a natural-language question in one call, under a strict byte budget (default 2048): ranked excerpts, linked neighbor notes (backlinks/outlinks) with one-line summaries, and follow-up source paths. Retrieval is lexical by default: for a question phrased in words the note itself may not use, pass mode "hybrid" or "semantic", and scope with folder/tag exactly as in search. Use search to locate notes and query_notes for metadata filters; use context_pack when you want answer-ready context without multiple round-trips. Empty excerpts with confidence "none" or "l…

ParameterTypeDescription
query *stringNatural-language question or topic.
budgetBytesnumberHard cap on response JSON bytes (256–16384, default 2048).
folderstringRestrict to a vault-relative folder prefix.
modestringlexical = keyword search (default). semantic = meaning-based over local embeddings (needs SEEKSTONE_SEMANTIC=1 and a fetched model). hybrid = exact-title lookups go lexical, everything else semantic.
tagstringRestrict to notes with this tag. # optional, case-insensitive; nested child tags match ("project" matches project/alpha).

read_note

Read a note or a span of it — by heading section, block reference, or line range. Returns structured JSON with the content, bytes returned, total note size, and a contentHash to pass as prevHash to edit tools for compare-and-swap. Use search or outline_note first to find the right path and section names.

ParameterTypeDescription
path *stringVault-relative path, e.g. "Daily Notes/2026-05-29.md".
blockstringReturn only the line anchored by this block id (^ prefix optional).
includeFrontmatterbooleanPrepend frontmatter to section/block span results. Default false for spans.
linesobjectReturn only this line range (1-indexed, inclusive).
sectionstringReturn only this heading section (heading text, # prefix optional). First match wins.

read_notes

Read up to 20 notes (or spans of them) in one call instead of repeated read_note calls, e.g. the top hits from search, query_notes, list_notes, or get_backlinks. Each item takes the same options as read_note and returns the same fields, in request order. budgetBytes (default 16384) caps the total note text: when the notes exceed it, each is cut to a fair share, marked truncated: true, and keeps noteBytes, so read the rest with read_note. A failing item (missing path, unknown section) returns its own error without failing the batch. contentHash is always the whole file's hash, usable as prevHas…

ParameterTypeDescription
items *arrayNotes to read, 1–20. Same options as read_note.
budgetBytesnumberCap on total note text returned across all items, in UTF-8 bytes (256–65536, default 16384).

list_notes

List notes, optionally filtered by folder prefix or tag.

ParameterTypeDescription
folderstringVault-relative folder prefix.
limitnumberMax results (1–500, default 100).
tagstringFilter by tag. # optional, case-insensitive; nested child tags match ("project" matches project/alpha).

list_tags

List all tags in the vault with usage counts. Supports substring filtering, minimum count threshold, and sort order. Nested tags (e.g. area/work) include a parent field.

ParameterTypeDescription
minCountnumberOnly return tags used in at least this many notes.
patternstringSubstring filter on tag name. Example: "work" matches "work" and "area/work".
sortstringSort by usage count descending (default) or alphabetically.

list_tasks

List Markdown checkbox tasks as compact structured rows (path, line, state, text, nearest heading) — vault-wide or scoped by note, folder, tag, or modified time. Defaults to open tasks. Custom markers like "/" are single-char states. Rows feed straight into update_task; use this instead of searching for "- [ ]" or reading whole notes.

ParameterTypeDescription
folderstringRestrict to a vault-relative folder prefix.
limitnumberMax tasks (1–500, default 100).
modifiedAfterstringOnly tasks in notes modified at or after this ISO 8601 date/time.
pathstringVault-relative path to a single note. Omit to search the whole vault.
stateWhich tasks to return. Default: open.
tagstringRestrict to notes with this tag. # optional, case-insensitive; nested child tags match ("project" matches project/alpha).

vault_stats

Vault size and shape: note, folder, tag and link counts, total/median/largest note bytes, notes modified in the last 1/7/30 days. Call first to pick between reading and searching.

create_note

Create a new note at a vault-relative path. Optionally sets frontmatter and body content. Parent directories are created automatically. Fails if the note already exists unless overwrite is true (prevHash may guard the overwrite).

ParameterTypeDescription
path *stringVault-relative path, e.g. "Daily Notes/2026-06-01.md".
contentstringBody content for the note.
frontmatterobjectFrontmatter key-value pairs.
overwritebooleanOverwrite an existing note. Defaults to false.
prevHashstringOptional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict on mismatch.

delete_note

Delete a note. By default it is moved to the vault .trash/ folder (recoverable by moving it back); pass permanent: true to remove it outright.

ParameterTypeDescription
path *stringVault-relative path of the note to delete.
permanentbooleanPermanently remove instead of moving to .trash/. Defaults to false.
prevHashstringOptional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict on mismatch.

move_note

Move or rename a note to a new vault-relative path, rewriting wikilinks and markdown links in other notes that point at it so nothing breaks (links inside fenced code blocks are left alone). Parent directories at the destination are created automatically. Fails if the destination already exists unless overwrite is true.

ParameterTypeDescription
from *stringVault-relative source path.
to *stringVault-relative destination path.
overwritebooleanOverwrite destination if it exists. Defaults to false.
prevHashstringOptional compare-and-swap guard on the source note: the contentHash from a prior read. Fails with hash_conflict on mismatch.
rewriteLinksbooleanRewrite references in other notes to follow the move. Defaults to true; pass false to move the file only.

rename_heading

Rename a heading in a note and rewrite every [[note#heading]] wikilink and embed across the vault so references keep working — aliases preserved, fenced code blocks left alone. Served from the warm backlink index, no vault scan. Heading matching is case-insensitive; with duplicate headings the first match wins, mirroring Obsidian link resolution.

ParameterTypeDescription
newHeading *stringNew heading text, without # markers. Must not contain newlines, "[", "]", "|", or "#".
oldHeading *stringCurrent heading text, without # markers. Case-insensitive; first match wins.
path *stringVault-relative path of the note containing the heading.
prevHashstringOptional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict on mismatch.

append_note

Append text to a note body without touching the frontmatter. Safe for meeting notes, daily logs, and append-only workflows.

ParameterTypeDescription
content *stringText to append.
path *stringVault-relative path to the note.
prevHashstringOptional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict on mismatch.

patch_frontmatter

Set, update, or delete frontmatter keys without reordering existing keys or changing quote style. Pass null as a value to delete a key.

ParameterTypeDescription
patch *objectKey-value pairs to set. Null value removes the key.
path *stringVault-relative path to the note.
prevHashstringOptional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict on mismatch.

outline_note

Return a note's structure — heading tree with offsets, block-reference anchors, and frontmatter key list — without returning any prose. Use this before section reads or patches to discover what sections exist at a fraction of the cost of reading the full note.

ParameterTypeDescription
path *stringVault-relative path to the note.
includeBlocksbooleanInclude block-reference anchors (^id). Default true.
includeSizesbooleanInclude per-section character length in each heading entry. Default false.

patch_note

Surgically edit a section of a note — targeted by heading or block reference — without rewriting the whole file. Operations: append (add after section), prepend (add after heading line), replace (swap section content). Frontmatter is never touched.

ParameterTypeDescription
content *stringContent to insert or replace with.
operation *stringappend: insert after section content. prepend: insert after heading line. replace: swap section content.
path *stringVault-relative path to the note.
target *Exactly one of: { heading: "Section Title" } or { block: "block-id" } (without the ^ prefix).
createIfMissingbooleanIf the heading target is not found, append a new heading (level 2) + content. Only valid for heading targets. Default false.
prevHashstringOptional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict on mismatch.

resolve_note

Resolve a note reference — a wikilink target, bare note name, path without extension, or frontmatter alias — to canonical vault-relative path(s). Each match carries provenance (path | basename | relpath | alias); matches[0] is exactly what a wikilink with that target resolves to, and ambiguous: true means more than one note matched. Empty matches means the reference resolves to nothing (didYouMean then lists close names). Returns paths only — resolve first, then read_notes. Pure index lookup.

ParameterTypeDescription
reference *stringReference to resolve: a vault-relative path ("Projects/Core.md"), a path without extension, a bare note name ("Core"), or a frontmatter alias.

replace_in_note

Find and replace text within a note body. Supports literal and regex search, case sensitivity, whole-word matching, and a replacement limit. Frontmatter is never touched. Use dryRun to preview matches before writing.

ParameterTypeDescription
find *stringText or pattern to find.
path *stringVault-relative path to the note.
replace *stringReplacement text. Supports $1, $2, … backreferences in regex mode.
caseSensitivebooleanCase-sensitive matching. Default false.
dryRunbooleanIf true, report matches without writing. Default false.
limitnumberMaximum number of replacements. Omit to replace all.
prevHashstringOptional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict on mismatch.
regexbooleanTreat find as a regular expression. Default false.
wholeWordbooleanMatch whole words only (\b boundary). Default false.

get_periodic_note

Get the path and existence status of a periodic note (daily, weekly, monthly, quarterly, or yearly) for a given date. Reads folder/format config from .obsidian/daily-notes.json (daily) or the periodic-notes plugin data.json. Optionally creates the note from the configured template if it is missing.

ParameterTypeDescription
createIfMissingbooleanCreate the note from the configured template if it does not exist. Default false.
datestringISO date string (YYYY-MM-DD). Defaults to today when omitted.
periodstringPeriod type. Default: daily.

append_periodic_note

Append text to a periodic note (daily, weekly, monthly, quarterly, or yearly). Preserves existing frontmatter exactly. Creates the note first (from template if configured) when createIfMissing is true (default).

ParameterTypeDescription
content *stringText to append to the note body.
createIfMissingbooleanCreate the note if it does not exist before appending. Default true.
datestringISO date string (YYYY-MM-DD). Defaults to today when omitted.
periodstringPeriod type. Default: daily.
prevHashstringOptional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict on mismatch.

update_task

Set the state of one Markdown checkbox identified by path + line (from list_tasks), rewriting exactly one character — the rest of the file, frontmatter included, stays byte-identical. Pass expectText to guard against the line having changed, and prevHash for full compare-and-swap. Setting the current state again is a success no-op.

ParameterTypeDescription
line *number1-based line number of the task, as returned by list_tasks.
path *stringVault-relative path to the note.
state *stringNew marker character: "x" (done), " " (open), or a custom marker like "/".
expectTextstringOptional guard: the task text list_tasks returned. Fails with task_text_mismatch on mismatch.
prevHashstringOptional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict on mismatch.

list_writes

List recent writes from the journal — every write tool records the pre-image of each file it touches, so any of them can be reverted with undo_write. Returns compact metadata rows (seq, timestamp, tool, paths, undoable), never note content.

ParameterTypeDescription
limitnumberMax entries to return, newest first (1–200, default 20).
pathstringOnly entries that touched this vault-relative path.

undo_write

Revert a journaled write: restores every file it touched to its byte-identical pre-write state (a delete is restored even if it was permanent). Defaults to the most recent undoable write. Refuses with undo_conflict if a file changed since that write, unless force: true. The undo is itself journaled — undo it to redo.

ParameterTypeDescription
forcebooleanRestore even if a file changed after the journaled write; the clobbered state is journaled first so nothing is lost. Defaults to false.
seqnumberJournal entry to revert (from list_writes). Defaults to the most recent undoable write.