create_gp_material
Creates a Grease Pencil stroke material using a material name and RGBA color, so scripts can define stroke colors in Blender; fill colors are not supported.
Instructions
Create a Grease Pencil material: the stroke colour.
Fills are not offered: in Blender 5.2, strokes built from a script do not render their fill.
Args: name: Material name. color: Stroke RGBA, components 0.0 to 1.0.
Returns: Dict with the material and its colour.
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>"
},
"name": "create_gp_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| color | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||