Upsert view variant
upsert_view_variantAdd a variant to a screen view. Name exactly one source: text_content for a stage-1 sketch (stored as TEXT, so it survives the document being overwritten), mockup_id to take a rendering from support-ai-ze (brings its image, HTML source, AI flag and creation time), or image_id for an image already in this Mappe — that last one is how an existing loose image is attached to a view afterwards. set_effective marks it as the one that goes into a submission; without it the fallback order decides.
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": {
"view_id": "<view_id>",
"stage": "<stage>"
},
"name": "upsert_view_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_ai | No | ||
| label | No | Tells two variants of the same stage apart, e.g. "schematic" vs "OSM basis". | |
| stage | Yes | 1 = sketch in characters, 2 = rendered HTML, 3 = designed image. | |
| view_id | Yes | ||
| image_id | No | ||
| mockup_id | No | ||
| captured_at | No | When it was CREATED, ISO. Defaults to the mockup's provenance or the image row. | |
| html_source | No | ||
| text_content | No | The sketch. Stage 1 only. | |
| set_effective | No |