List Property Keys
vault_list_property_keysList all frontmatter property keys in an Obsidian vault with note counts and sample values to reveal the metadata schema before searching by property.
Instructions
Discover all property keys in the vault with note counts and sample values. Lets you understand the vault's metadata schema without reading individual notes.
Example: vault_list_property_keys() returns [{ key: "tags", count: 342, sample_values: ["session-log", "project"] }, ...]
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 and includes its subfolders: "Projects" covers "Projects/Archive" but not "ProjectsOld/". Matching ignores ASCII letter case; omit folder to scan the entire vault.
Behavior:
Only frontmatter 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 displayed strings. Values with the same string are grouped before choosing samples, counting each array element separately; ties use binary text order.
Checkbox values appear as "1" and "0"; null values are skipped.
Errors:
An empty vault or folder returns an empty array, not an error.
Returns: JSON array of { key, count, sample_values } sorted by count descending, then by key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Restrict to a folder (e.g. "Projects") |