Search notes
search_notesFind notes in the Obsidian vault whose name or folder path contains the query, case-insensitively. Set content to search .md, .canvas and .base notes by path and contents instead; each result then lists up to 3 matching lines with line numbers, at most 50 notes are returned, and other files are left out. Files under the vault-root Trash/ folder are left out unless include_trash is set.
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 |
|---|---|---|---|
| query | Yes | case-insensitive text to match against note paths, and contents when content is set | |
| content | No | also search inside .md, .canvas and .base notes and return matching lines; default false | |
| include_trash | No | also return files under the vault-root Trash/ folder; default false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | vault-relative paths of matching files, when content is false | |
| results | No | .md, .canvas and .base notes matching by path or contents, when content is true | |
| truncated | No | more notes matched than the 50 returned |