query_notes
Filter and sort notes by frontmatter fields using equality, containment, numeric comparison, and existence checks to retrieve matching Obsidian notes.
Instructions
Query notes using frontmatter field filters. Supports equality, inclusion (for arrays), and comparison operators.
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": {
"where": "<where>"
},
"name": "query_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. | |
| where | Yes | Filter conditions (all must match). | |
| sort_by | No | Frontmatter field to sort results by. | |
| sort_order | No | Sort direction. Defaults to 'asc'. |