search_notes
Locate notes by full-text query across titles, body text, and tags, returning ranked BM25 matches with snippets and optional folder, tag, or all-term filters.
Instructions
Full-text search over note titles, body text and tags, ranked best first (BM25), with a snippet showing the best-matching line and its line number.
Matching ignores case and diacritics ("seker" finds "Seker" and "Şeker") and uses whole words, no stemming. Words in the title count more than words in the body. By default a note matches if it contains any query word, and notes containing more of them rank higher; all_terms=true requires every word. folder="Projects" limits to that folder (and below); tag="project" limits to notes with that tag or a nested tag like project/alpha.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| limit | No | ||
| query | Yes | ||
| folder | No | ||
| all_terms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |