tabularia_assign_paragraph_style
Assign an existing named paragraph style to up to 5,000 ordinary paragraphs by stable Block IDs in a named editable non-Base Draft. Name project, draftId, requestId, and namedParagraphStyleId explicitly. Read namedParagraphStyles from tabularia_read_book_settings to find existing IDs; the chosen style must also exist in the target Draft. Book-owned styles can apply only within that Book. Positional indices, missing or repeated IDs, nonparagraph Blocks, and targets outside the Draft scope are refused. The style definition, paragraph wording, and Block order remain unchanged. Assignment follows Studio’s named-style operation: it clears paragraph formatting overrides and uniform font typography marks so the paragraph inherits that style. First call without confirmationToken to preview; show the selection and style to the Writer, then repeat with the token after conversational confirmation. Tokens bind the exact source revision, style, caller, and targets for ten minutes. At most 4 MB of recovery data, subject to transport input limits. The current publication owner reads a complete inactive Draft; hosted Drafts above 20,000 Blocks are refused. Retain requestId and IDs on retries; identity reuse for different content is refused. Publication is atomic in both connectors. The Draft remains for review and merging; native writes require the assistant-owned, inactive Draft restriction. The actionId supports targeted tabularia_undo_action in the same connector. Undo preserves unrelated attributes and other paragraphs, and refuses changes to affected formatting or spans. No whole-Project restore is used.
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": {
"project": "<project>",
"draftId": "<draftId>",
"requestId": "<requestId>",
"blockIds": "<blockIds>",
"namedParagraphStyleId": "<namedParagraphStyleId>"
},
"name": "tabularia_assign_paragraph_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | ||
| project | Yes | Which 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). Always name it, even when only one Project is open. | |
| blockIds | Yes | ||
| requestId | Yes | ||
| confirmationToken | No | ||
| namedParagraphStyleId | Yes |