List Property Keys
vault_list_property_keysDiscover every property key in an Obsidian vault, with note counts and sample values, without opening notes. Use it to orient yourself before searching notes by property.
Instructions
Discover all property keys in the vault with note counts and sample values, without reading individual notes.
Example: vault_list_property_keys() returns [{ key: "tags", count: 342, sample_values: ["session-log", "project"] }, ...] Example: vault_list_property_keys({ folder: "Projects" }) — the keys used under Projects/ only
When to use: Discovering what properties exist before searching by property. Good first step for vault orientation alongside vault_list_tags. Prefer vault_list_property_values when you need the full list of values for a specific key. Prefer vault_search_by_property to find notes matching a specific key-value pair.
Parameters:
folder names a whole folder, subfolders included: "Projects" covers "Projects/Archive" but not "ProjectsOld/", ignoring ASCII letter case; omit it to scan the entire vault.
Behavior: Results can lag a file change by a few seconds.
Only properties count; inline Dataview fields (key:: value) are not listed.
count is the number of notes that have the key, including notes where its value is empty (null).
sample_values are the key's 3 most frequent values as text (a number as JavaScript prints it, so 1.0 lists as "1"; a checkbox as "1" or "0"), counting each array element separately; null values are skipped.
Errors:
An empty vault or folder returns an empty array, not an error.
"[SqliteError]: …" — the index failed, not the call; the message says what to do
Returns: JSON array of { key, count, sample_values } sorted by count descending, then by key.
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": "vault_list_property_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Restrict to a folder (e.g. "Projects") |