You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
description: 'Search for notes with specific attributes (labels or relations). Use this when you need to find notes based on their metadata rather than content. IMPORTANT: attributeType must be exactly "label" or "relation" (lowercase).',
22
+
description: `ATTRIBUTE-BASED search for notes. Find notes by their labels or relations (metadata/tags).
23
+
24
+
BEST FOR: Finding notes by categories, tags, status, relationships, or other metadata
25
+
USE WHEN: You need notes with specific labels, relations, or organizational attributes
26
+
DIFFERENT FROM: search_notes (content) and keyword_search_notes (text)
27
+
28
+
CRITICAL: attributeType MUST be exactly "label" or "relation" (lowercase only!)
description: 'Search for notes using exact keyword matching and attribute filters. Use this for precise searches when you need exact matches or want to filter by attributes.',
20
+
description: `EXACT KEYWORD search for notes. Finds notes containing specific words, phrases, or attribute filters.
21
+
22
+
BEST FOR: Finding notes with specific words/phrases you know exist
23
+
USE WHEN: You need exact text matches, specific terms, or attribute-based filtering
24
+
DIFFERENT FROM: search_notes (which finds conceptual/semantic matches)
25
+
26
+
SEARCH TYPES:
27
+
• Simple: "machine learning" (finds notes containing both words)
28
+
• Phrase: "\"exact phrase\"" (finds this exact phrase)
29
+
• Attributes: "#label" or "~relation" (notes with specific labels/relations)
30
+
• Complex: "AI #project ~relatedTo" (combines keywords with attributes)
31
+
32
+
NEXT STEPS: Use read_note with returned noteId values for full content`,
21
33
parameters: {
22
34
type: 'object',
23
35
properties: {
24
36
query: {
25
37
type: 'string',
26
-
description: 'The search query using Trilium\'s search syntax. Examples: "rings tolkien" (find notes with both words), "#book #year >= 2000" (notes with label "book" and "year" attribute >= 2000), "note.content *=* important" (notes with "important" in content)'
38
+
description: `Keyword search query using Trilium search syntax.
39
+
40
+
SIMPLE EXAMPLES:
41
+
- "machine learning" (both words anywhere)
42
+
- "\"project management\"" (exact phrase)
43
+
- "python OR javascript" (either word)
44
+
45
+
ATTRIBUTE EXAMPLES:
46
+
- "#important" (notes with 'important' label)
47
+
- "~project" (notes with 'project' relation)
48
+
- "#status = completed" (specific label value)
49
+
50
+
COMBINED EXAMPLES:
51
+
- "AI #project #status = active" (AI content with project label and active status)
0 commit comments