np_repeat
Repeat elements of an array a specified number of times, optionally along a given axis.
Instructions
Repeat elements of an array.
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": {
"array": "<array>",
"repeats": "<repeats>"
},
"name": "np_repeat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | The input array. | |
| repeats | Yes | The number of repetitions for each element. | |
| axis | No | The axis along which to repeat values (default: flattens). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |