np_reshape
Reshape an array to a new shape while preserving the original data. Specify input array and desired shape dimensions.
Instructions
Give a new shape to an array without changing its data.
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>",
"newshape": "<newshape>"
},
"name": "np_reshape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | The input array to reshape. | |
| newshape | Yes | The new shape (int or list of ints). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |