set_variable
Create or overwrite a workspace variable with numeric, boolean, or array data, optionally specifying data type (integer, float, complex).
Instructions
Create or overwrite a workspace variable.
data may be a number, a boolean, a 1-D list (row vector), or a 2-D
nested list (matrix). Without dtype, numbers become double and booleans
become logical. dtype may request an integer type (int8..uint64),
float32/float64, or a complex type (complex64/complex128, with
data={"real": <array>, "imag": <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": {
"name": "<name>",
"data": "<data>"
},
"name": "set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| name | Yes | ||
| dtype | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||