query_notes
Filter and sort Obsidian notes by properties or file metadata, compare dates to values like today or -7d, then return selected fields as JSON, a Markdown table, or CSV.
Instructions
Dataview-style query over notes: filter by properties and file metadata (AND/OR), sort, pick fields, output JSON, a Markdown table or CSV. Dates can be compared with "today", "-7d", "1m".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "query_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| sort | No | ||
| limit | No | Max results (default 100) | |
| match | No | ||
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. | |
| where | No | ||
| fields | No | Columns to return (default: path + fields used in where) | |
| folder | No | Limit to this folder (vault-relative) | |
| format | No |