batch_batch_map
Apply a function to each item in an array, with error handling to skip or raise. Returns results, counts of success and errors, total items, and elapsed time.
Instructions
[batch] Apply fn to each item. on_error: null/skip/raise. Returns {results, ok, errors, total, elapsed_ms}.
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": {
"items": "<items>",
"fn": "<fn>"
},
"name": "batch_batch_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| fn | Yes | ||
| on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |