batch_batch_filter
Apply a custom function to each item in an array and keep only those where the result is truthy. Returns filtered results along with total, kept, and rejected counts.
Instructions
[batch] Keep items where fn(item) is truthy. Returns {results, total, kept, rejected}.
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_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| fn | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |