search_notes
Search across all content in the knowledge base with comprehensive syntax support.Parameters
Search query string. Supports boolean operators, phrases, and patterns.
Can be omitted for filter-only searches using
metadata_filters, tags, or status.Project name to search in. Optional - server resolves using hierarchy.
Page number of results to return
Number of results to return per page
Type of search to perform:
text- Full-text search (FTS)title- Search only in titlespermalink- Search/match permalinksvector- Semantic vector searchsemantic- Alias for vectorhybrid- Combine FTS and vector search
“text” returns structured SearchResponse. “json” returns machine-readable dict.
Filter by note types. Examples:
["note", "person", "guide"]Filter by entity types. Examples:
["entity", "observation", "relation"]Filter for recent content. Examples:
"1 week"- Content from last week"2d"- Last 2 days"2024-01-01"- Since specific date
Structured frontmatter filters. Supported forms:
- Equality:
{"status": "in-progress"} - Array contains:
{"tags": ["security", "oauth"]} - Operators:
$in:{"priority": {"$in": ["high", "critical"]}}$gt,$gte,$lt,$lte:{"schema.confidence": {"$gt": 0.7}}$between:{"schema.confidence": {"$between": [0.3, 0.6]}}
"schema.confidence"Filter by frontmatter tags. Shorthand for
metadata_filters["tags"].Filter by frontmatter status. Shorthand for
metadata_filters["status"].Override global semantic similarity threshold for this query.
Only applies to vector and hybrid search types.
0.0- See all vector results0.8- High precision
Returns
SearchResponse (output_format=“text”):
results- Array of search results with metadatatotal_results- Total number of matchespage,page_size- Pagination infohas_more- Whether more results exist
- Machine-readable dictionary with same fields
- Helpful error messages with troubleshooting guidance
Search Syntax Examples
Basic Searches
Boolean Searches
Content-Specific Searches
Search Type Examples
Filtering Examples
Filter-Only Searches
Advanced Patterns
search
OpenAI-compatible search interface.Parameters
Search query string
Project name to search in. Optional - server resolves using hierarchy.
Returns
Formatted search results compatible with OpenAI actions.