batch_array_replace
Replace an old value with a new value in an array frontmatter property across multiple files using a glob pattern. Skips files where property or old value is missing.
Instructions
Replace a value in an array property in multiple files.
Args: glob: Glob pattern relative to base directory (e.g. "atoms/**/*.md"). property: Name of the array property. old_value: Value to replace. new_value: New value.
Returns: Dict with updated_count, updated_files, and warnings.
Notes: - If property doesn't exist, file is skipped. - If old_value doesn't exist in array, file is skipped. - If property is not an array, file is skipped with a warning. - Files are only included in updated_files if actually modified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | Yes | ||
| property | Yes | ||
| new_value | Yes | ||
| old_value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||