Batch Array Replace
batch_array_replaceReplace a value in an array property across multiple Markdown files matched by a glob, updating all occurrences to keep frontmatter metadata consistent.
Instructions
Replace a value in an array property in multiple files.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"glob": "<glob>",
"property": "<property>",
"old_value": "<old_value>",
"new_value": "<new_value>"
},
"name": "batch_array_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | Yes | Glob pattern relative to base directory (e.g. "atoms/**/*.md"). | |
| property | Yes | Name of the array property. | |
| new_value | Yes | New value. | |
| old_value | Yes | Value to replace. Every occurrence is replaced. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| warnings | No | ||
| updated_count | Yes | ||
| updated_files | Yes |