np_full
Create an array of any shape filled with a specified constant value. Specify shape, fill value, and optional data type.
Instructions
Create an array filled with a constant value.
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": {
"shape": "<shape>",
"fill_value": "<fill_value>"
},
"name": "np_full"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | Yes | An integer for 1D shape, or a list of integers for multi-dimensional. | |
| fill_value | Yes | The value to fill the array with. | |
| dtype | No | The data type of the array (default: "float64"). | float64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |