get_metadata_keys
Retrieve all frontmatter metadata keys from your Obsidian notes to understand available data fields and structure your note organization.
Instructions
Get all available frontmatter keys from notes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:242-244 (handler)The core handler function for the 'get_metadata_keys' tool in the ObsidianApiClient class. It makes an HTTP request to the '/metadata/keys' endpoint to retrieve available frontmatter keys.async getMetadataKeys() { return this.request("/metadata/keys"); }
- src/index.ts:421-427 (schema)Tool schema definition including name, description, and empty input schema (no parameters required). This is part of the tools list returned by ListToolsRequest.name: "get_metadata_keys", description: "Get all available frontmatter keys from notes", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:522-524 (registration)Registration of the tool handler in the central switch statement within the CallToolRequestSchema handler. Delegates execution to the client.getMetadataKeys() method.case "get_metadata_keys": result = await this.client.getMetadataKeys(); break;