collection_chunk
Split a list into chunks of a given size by providing the items and size, enabling easier processing of large collections in smaller groups.
Instructions
Split a list into chunks of a given size.
Args: items: The list to split. size: The chunk size.
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>",
"size": "<size>"
},
"name": "collection_chunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| items | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |