Scaffold item models
scaffold_modelsCreate item models («Modelle») in one call: one model per article type whose pieces share a name and settings, e.g. «Arbeitshose» in sizes XS to 8XL, or 16 identical radios. Same contract as scaffold_categories: without confirm: true it is a dry run that writes nothing; the SAME call with confirm: true commits. Per model: name, categoryId, and how its pieces are named: nameSuffix "none" (every piece carries the model's name), "text" (each piece keeps its own suffix from its row: «Funkgerät 3») or "field" with nameSuffixFieldId (a select, text or number field: «Arbeitshose XL»); variantValues, the values a field may take on this model (the sizes it exists in); defaultFieldValues, the values every new piece gets. An existing model of the same name is reused, never duplicated; one whose settings differ (category, name suffix, allowed values, or a named default) is reported as a conflict and left as it is. Models are created last to first, so the app's model list opens on the first one. plan_import adds the pieces: the model's name in a blueprintName column and the size in its field's column. Model pictures are added in the app. At most 50 models per call. Requires the manager role. Idempotent: a repeated commit reuses every model.
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": {
"models": "<models>"
},
"name": "scaffold_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | The models, at most 50 per call | |
| confirm | No | true commits the plan; absent or false = dry run, nothing written |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | No | One row per model, in the order of the request | |
| preview | No | True = dry run, NOTHING was written; the same call with confirm: true commits it | |
| summary | No | Counts: create, existing, conflict, invalid | |
| warnings | No | Rows skipped on commit — commit mode | |
| committed | No | True = the plan was executed | |
| instruction | No | Preview mode: what the same call with confirm: true would do |