map_reduce
Applies the same edit across batches of files matching a glob pattern, running concurrent isolated jobs with verification and returning a group ID to wait on.
Instructions
The same edit over many files: one job per batch of files matching glob ({{files}} in prompt_template),
at most concurrency at once, each in a worktree with verify_cmd. Returns a group id for wait().
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_pattern": "<glob_pattern>",
"prompt_template": "<prompt_template>"
},
"name": "map_reduce"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| repo | No | ||
| engine | No | auto | |
| isolation | No | worktree | |
| batch_size | No | ||
| verify_cmd | No | ||
| concurrency | No | ||
| glob_pattern | Yes | ||
| prompt_template | Yes |