np_squeeze
Remove single-dimensional entries from the shape of an array, optionally selecting specific axes.
Instructions
Remove single-dimensional entries from the shape 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>"
},
"name": "np_squeeze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | The input array. | |
| axis | No | Selects a subset of the length-1 dimensions (default: all). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |