batch_array_unique
Remove duplicate values from an array property in files matched by a glob pattern. Preserves order of first occurrence and skips files without duplicates.
Instructions
Remove duplicate values from an array property in multiple files.
Args: glob: Glob pattern relative to base directory (e.g. "atoms/**/*.md"). property: Name of the array property.
Returns: Dict with updated_count, updated_files, and warnings.
Notes: - Preserves the order of first occurrence. - If property doesn't exist, file is skipped. - If array is empty or has single element, file is skipped. - If array has no duplicates, 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||