/trilium:trilium-search-notesfrom trilium
Search for notes in Trilium Notes by title, content, or attributes using the search_notes MCP tool and Trilium Notes' query syntax. Use when the user asks to find, search for, list, or look up notes — general lookups, not specifically notes derived from a template (use find-template-instances for that).
Ships in trilium. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A thin wrapper around search_notes, which takes a query string in Trilium Notes' own search syntax — the same syntax used in the app's search box. load_skill("search_syntax") returns the full reference from the server. For searching specifically by template relationship, use the trilium-find-template-instances skill instead.
fastSearch is set): project plan#labelName matches notes carrying that label; #labelName = 'value' matches an exact value; other comparators (*=*, >=, <=, etc.) work too. Values with hyphens or spaces must be quoted.~relationName.title = 'X' or ~relationName.noteId = 'id' matches notes whose relation points at a note with that title/id.AND/OR, scope with note.type, note.dateCreated, etc., and sort with orderBy inside the query — load the syntax reference rather than guessing at an unfamiliar clause.If more than one Trilium Notes instance is connected this session, resolve which one to use first — see Working with multiple instances.
Clarify what the user is looking for if it's ambiguous: a keyword search, a label/attribute filter, a relation filter, or some combination. Don't invent a query more specific than what they asked for.
Compose the search string from the query syntax above. Prefer the simplest query that captures the request — a bare keyword search over content unless the user names labels, relations, or a specific note type.
Call search_notes with query. Consider:
limit (default 10) if the user wants more or fewer results.ancestorNoteId if the user wants to search only within a subtree.fastSearch: true if the user explicitly wants title/attribute-only matching without scanning content (faster, less thorough).includeArchivedNotes: true only if the user asks to include archived notes — they're excluded by default.If zero results come back and the query used a label/relation filter, don't just report "nothing found" — consider whether the attribute name might be slightly different than assumed, and say so rather than guessing at variations silently.
Present results concisely: title, noteId, and whichever attribute values are relevant to what the user asked about — not the full JSON payload per note.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub marceltov/trilium-plugin --plugin trilium12 skills in this plugin
/trilium-apply-template-to-noteRetroactively attach an existing note in Trilium Notes to a template via a ~template relation, which merges the template's child-note structure, content, and promoted attributes onto that note. Use when the user asks to convert, retrofit, or "make this note use" an existing template. This overwrites the target note's content and adds child notes to it — always confirm before writing./trilium-create-noteCreate a new plain note in Trilium Notes (title, content, type, and parent location) via the create_note MCP tool. Use when the user asks to create, add, jot down, or capture a new note in Trilium Notes and no template is involved./trilium-create-note-from-templateCreate a new note in Trilium Notes instantiated from an existing template note, by creating a blank note and attaching a ~template relation, then prompting for the template's promoted-attribute values. Use when the user asks to create a note "from" or "using" a template (e.g. "create a new Server note from the Server template")./trilium-delete-noteDelete a note in Trilium Notes (and its entire subtree of child notes) via the delete_note MCP tool, after confirming with the user. Use when the user asks to delete, remove, or get rid of a note in Trilium Notes./trilium-export-note-subtreeExport a note in Trilium Notes and its subtree as one readable Markdown document, built from get_subtree and get_note_content. Use when the user asks to export, dump, or get a readable copy of a note and its children — e.g. for backup, review, or pasting elsewhere./trilium-find-template-instancesSearch for notes in Trilium Notes instantiated from a given template, optionally filtered by promoted-attribute values, using ~template relation search syntax. Use when the user asks to list, find, or query notes created from a template (e.g. "show me all Server notes" or "which notes use the Meeting template").