batch_array_add
Add a value to an array property in multiple files matching a glob pattern, creating the property if missing and skipping non-array properties.
Instructions
Add a value to an array property in multiple files.
Args: glob: Glob pattern relative to base directory (e.g. "atoms/**/*.md"). property: Name of the array property. value: Value to add. If value is an array, it's added as a single element. allow_duplicates: If False (default), skip files where value already exists.
Returns: Dict with updated_count, updated_files, and warnings.
Notes: - If property doesn't exist, it will be created with [value]. - 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 | ||
| value | Yes | ||
| property | Yes | ||
| allow_duplicates | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||