get_metadata_keys
Retrieve all frontmatter keys from notes in an Obsidian vault via the Local REST API MCP Server, enabling structured metadata access and 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)Core handler function in ObsidianApiClient that implements the get_metadata_keys tool logic by fetching from the /metadata/keys API endpoint.async getMetadataKeys() { return this.request("/metadata/keys"); }
- src/index.ts:423-426 (schema)Input schema for the get_metadata_keys tool, defining an empty object (no required parameters).inputSchema: { type: "object", properties: {}, },
- src/index.ts:420-427 (registration)Tool registration in the ListTools response, including name, description, and schema.{ name: "get_metadata_keys", description: "Get all available frontmatter keys from notes", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:522-524 (registration)Tool call handler registration in the switch statement of CallToolRequestSchema handler.case "get_metadata_keys": result = await this.client.getMetadataKeys(); break;