np_array
Convert a Python list into a NumPy array, optionally specifying the data type for numerical operations.
Instructions
Create a NumPy array from a list.
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": {
"data": "<data>"
},
"name": "np_array"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | A Python list containing the array elements. | |
| dtype | No | The data type of the array (default: "float64"). Common values: "int32", "int64", "float32", "float64", "complex128". | float64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |