add_annotation_stroke
Creates a stroke on a specified annotation layer using XYZ points, enabling precise annotation creation in Blender.
Instructions
Add a stroke to an annotation layer.
Creates a new stroke with the given points on the specified layer. Annotation points in 5.2 are a position only: no pressure or strength.
Args: annotation_name: Name of the annotation data block. layer_name: Name of the layer to add the stroke to. points: List of XYZ coordinates, e.g. [[0,0,0], [1,1,0], [2,0,0]]. Maximum 10000 points.
Returns: Confirmation dict with point count.
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": {
"annotation_name": "<annotation_name>",
"layer_name": "<layer_name>",
"points": "<points>"
},
"name": "add_annotation_stroke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | ||
| layer_name | Yes | ||
| annotation_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||