create_piece
Create a reusable SVG building block for a template and part class. Attach it to a part for part-specific content or to a style to apply it to every part in that style.
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>",
"svg": "<svg>",
"partClassId": "<partClassId>",
"templateId": "<templateId>",
"position": "<position>"
},
"name": "create_piece"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | ||
| name | Yes | ||
| part_id | No | ||
| variant | No | How the piece is used when attached to the part or style; defaults to "default". | |
| position | Yes | ||
| style_id | No | ||
| templateId | Yes | ||
| partClassId | Yes |