batch_update
Update or remove frontmatter properties in multiple Markdown files matching a glob pattern. Set new values and unset existing keys across all matched files.
Instructions
Update frontmatter properties in multiple files matching glob pattern.
Args: glob: Glob pattern relative to base directory (e.g. "atoms/**/*.md"). set: Properties to add or overwrite in all matched files. unset: Property names to remove from all matched files.
Returns: Dict with updated_count, updated_files, and warnings.
Notes: - If same key appears in both set and unset, unset takes priority. - If a file has no frontmatter, it will be created. - Errors in individual files are recorded in warnings, not raised.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | ||
| glob | Yes | ||
| unset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||