pixelblaze_create_pattern
Create and activate a new LED pattern on PixelBlaze by providing JavaScript code that defines a render function.
Instructions
Create a new pattern on the PixelBlaze with the given JavaScript code, then activate it.
Args: name: Display name for the new pattern. code: PixelBlaze JavaScript source code (must define a render(index) function).
Returns a dict with the new pattern's 'id' and 'name'.
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>",
"code": "<code>"
},
"name": "pixelblaze_create_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||