generate_property
Analyzes Obsidian Markdown files to automatically generate and update frontmatter properties like title, tags, summary, and date based on document content.
Instructions
Analyzes the content of a specified Obsidian Markdown file to automatically generate the most suitable properties (frontmatter) and updates the file directly.
Use Cases:
After Completing a Draft: Use when the body of the text is complete, and you want to generate all properties at once.
Updating Information: Use when you want to update existing properties with more accurate information reflecting the latest content.
Completing Missing Info: Use when you want to automatically add missing properties like tags or a summary to a document that only has a title.
Parameters:
filename: The name or path of the file to analyze and add properties to (e.g., "my-first-post.md"). overwrite: If set to true, existing properties will be overwritten by the AI-generated content. Default: false.
Generated Properties:
The AI analyzes the context of the content to generate the following properties:
aliases: An array of alternative names or synonyms based on the content.
title: A title that best represents the core topic of the document.
tags: An array of tags extracted from the core keywords of the content (e.g., [AI, Obsidian, productivity]).
summary: A one to two-sentence summary of the entire document.
slug: A hyphenated-string suitable for URLs, containing the core keywords from the content.
date: The event date or creation date inferred from the content (in ISO 8601 format).
completed: A boolean (true or false) indicating whether the content is considered a final version.
Return Value:
Upon success, returns a JSON object containing a success message that includes the modified filename. { "status": "success", "message": "Successfully updated properties for my-first-post.md" }
Requirements:
The user's absolute path to the Obsidian vault must be correctly set in an environment variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | The name or path of the file to analyze and add properties to (e.g., "my-first-post.md") | |
| overwrite | No | If set to true, existing properties will be overwritten by the AI-generated content. Default: false. |