array_rotate
Rotate an array by n positions.
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>",
"positions": "<positions>"
},
"name": "array_rotate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Comma-separated items | |
| positions | Yes | Positions to rotate (positive=right, negative=left) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rotated | Yes | ||
| original | Yes | ||
| positions | No |