tabularia_open_decoration_upload
Ask for a one-shot address to send a drop cap, the letters of a lettered set, or an ornament you drew to, so it joins this Project's own decorations in the Custom collection of the Writer's decoration library. Send a PNG, a lossless WebP or an SVG, never JPEG, which has no transparency. An SVG is drawn to a transparent PNG 2048 pixels on its longest edge as it arrives, and is refused if it holds anything but paths, shapes, groups, clip paths, masks and gradients, or reaches outside the file; text, images, scripts and styles are not drawn. Use a transparent background and a single color of ink on full transparency. Studio reads the alpha channel as the ink and ignores the color, tinting it with the Writer’s ink, so anything opaque prints as a solid block. A drop cap frame is square, 1024×1024 pixels recommended: a frame or ornament drawn around the edges, with roughly the middle 64% of each side (from 18% to 82%) left free of ink, because Studio typesets the paragraph’s live opening letter centered there at 56% of the frame’s height, its capitals about two fifths of the frame tall and never wider than 56% of it; draw no letter in a frame. A letter of a lettered set is square too, 1024×1024 recommended, with its letter drawn in: it is set as it is, filling the drop cap’s square. An ornament keeps its own proportion, from 1:2 to 20:1, with the canvas cropped close to the art: the whole canvas is its selection box. It is laid out at 48% of the text measure by default; a width wider than the text fills the measure. Any of them may weigh at most 4 MB and measure at most 4096 pixels on its longest edge; a drop cap or letter may be off square by no more than 2%. Send it with a single PUT whose content-type matches the bytes. Each address works once, expires in minutes, and belongs to one Project: send the same design to each Project that uses it. The upload answers with a choiceId: pass it as treatmentId to tabularia_arrange_drop_cap, or as decorationId to tabularia_add_ornament or tabularia_arrange_ornament. For a lettered set, ask with kind "drop-cap-letter", set and letters; every letter answers with the set's setChoiceId too. Send a requestId you make up for this one change, and send the same requestId if you retry it after an error or a lost answer: a retry with it answers with the first result and does not write again. A new change needs a new requestId, even when its wording is the same.
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": {
"kind": "<kind>"
},
"name": "tabularia_open_decoration_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | For "drop-cap-letter", the lettered set’s name, such as "Amsterdam initials". Letters sent under the same name, in any call, join the same set. | |
| kind | Yes | What you drew: "drop-cap" for a square frame the opening letter sits in, "drop-cap-letter" for the letters of a lettered set, one square drawing per letter with the letter drawn in, or "ornament" for a headpiece, tailpiece, line ornament or vignette at its own proportion. | |
| model | No | The model that drew it, recorded beside it. | |
| title | No | What the Writer sees it called in their decoration library. A letter is titled for its set and letter. | |
| letter | No | For "drop-cap-letter", the one capital letter this address is for. Or use letters. | |
| letters | No | For "drop-cap-letter", up to 40 letters at once, each a capital and an optional variant (a second drawing of the same letter, such as "leafy"). The answer’s uploads holds one address per letter. | |
| project | No | Which open Project to use, by title, id, or the Studio address the Writer sees (a tabularia.app/studio/ URL or its six-character code — the Writer’s tab URL is enough; there is no need to look at the page). Omit it when only one Project is open in Studio. | |
| variant | No | For "drop-cap-letter" with letter, a second drawing of that letter, such as "leafy". | |
| requestId | No | Optional. Your own name for this one change, 1–80 letters, digits, underscores, or hyphens. Reuse it only to retry the same change with the same input. |