Create a mug design draft
create_design_linkUse this when the user wants a mug designed or personalised. Turns a design description into a link that opens the LivaGlow designer with the finished draft (texts, cliparts, background, photo placeholder, optional template). If the user already gave a text or an occasion, build the draft with sensible defaults; they can change it afterwards. Nothing is stored or ordered: the customer opens the link, checks the 3D preview, uploads their photo if a placeholder is present, and orders. Everything is placed automatically: with a photo, texts and cliparts form a column next to it, otherwise a centred column. A template only fits its own text slots, which replace in order: for your own wording, extra texts or cliparts leave template out and use items with photo. Photos cannot be passed; use photo:{shape} to reserve a placeholder. Call get_design_options first for valid fonts, cliparts and templates. Do not use it for hateful, harassing or illegal print content.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_design_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Texts and cliparts in top-to-bottom order | |
| photo | No | Reserve a photo placeholder the customer fills in the designer | |
| layout | No | Column for automatically placed items (default: opposite the photo, else center) | |
| template | No | Template id from get_design_options (optional) | |
| background | No | Background: preset id (e.g. "schwarz", "nacht", "creme", "sonnenuntergang"), a colour "#rrggbb", {kind:"solid",color:"#rrggbb"} or {kind:"gradient",from:"#rrggbb",to:"#rrggbb",angle:135}. Text colour adapts automatically unless set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Designer link with the draft | |
| next | No | ||
| price | Yes | ||
| locale | Yes | ||
| summary | Yes | ||
| warnings | Yes | ||
| previewUrl | Yes | PNG of the flat print area | |
| previewNote | No | ||
| elementCount | No | ||
| hasPhotoPlaceholder | Yes |