tabularia_add_ornament
Put a divider ornament before or after a Block, in the body or on a Book’s title page: the plain rule, or the art decorationId names. Or send placements to place many at once: a headpiece above one Chapter’s title, a tailpiece after a Chapter’s last Block, a line ornament between sections, or a vignette on a title page, each named by the Chapter’s opening Block, the paragraph, or the Book. Every placement is checked before any is made, and they go in order. The Writer restyles them from their decoration library. A Draft written from here cannot hold a new Block, so ornaments go into the Base Draft: send them with target "base", and a Snapshot is taken first. Sent without it, nothing is written and the answer says why. The answer names each ornament placed, and previous holds the calls that put things back: tabularia_remove_ornament with the blockIds added, and this tool with the headpieces replaced. A Scene, Chapter or Act boundary is not an ornament and is not added from here. 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
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": "tabularia_add_ornament"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Where the change goes, as for tabularia_propose_edit: "draft" is your own Draft, "new-draft" starts a fresh one, and "base" makes it in the Base Draft itself, after a Snapshot. Left out, it goes to your own Draft. Use "base" only when the Writer asked for the change in their text. | |
| draftId | No | Make the change in this Draft, from tabularia_list_drafts. It settles where the change goes; leave target out. | |
| 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. | |
| widthPx | No | Its width, in whole pixels, at least 48. The page keeps it no wider than the text. | |
| draftName | No | What to call the Draft when target is "new-draft". | |
| 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. | |
| placements | No | Many ornaments at once, up to 500, placed in order in the Base Draft behind one Snapshot. When given, the single-ornament fields above are not used; send it with target "base". | |
| afterBlockId | No | Stand it after this Block, by id from a window read. Give this or beforeBlockId, not both. | |
| decorationId | No | Which ornament art to use: the id of an ornament tabularia_list_decorations lists, built-in or one of the Project’s own (custom.divider.…), or the choiceId tabularia_open_decoration_upload answered with. Left out, the art stays as it is, and a new ornament is the plain divider rule. | |
| paddingTopPx | No | Space above it, in whole pixels from 0 up. | |
| beforeBlockId | No | Stand it before this Block, by id from a window read. Give this or afterBlockId, not both. | |
| paddingBottomPx | No | Space below it, in whole pixels from 0 up. |