add_text_widget
Add a text widget, a free-text block written by the caller, to a report. Deterministic, no AI: the text goes in exactly as given, as HTML (p, br, strong, em, u, s, ul, ol, li, h2–h4, blockquote, a href) or plain text, at most 50,000 characters; scripts, event handlers, javascript: links, frames, images and inline styles other than text-align are removed. Styling is carried by attributes, never inline styles: (text colour), (highlight), , (a tinted box around one block) and (a divider); each is painted with the report theme's own colours in light and dark mode and in the PDF. Goes at the end of the report unless position says otherwise. An existing text block is changed with edit_widget (text). Requires MCP write actions; without confirm:true it returns a preview.
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": {
"reportId": "<reportId>",
"title": "<title>",
"text": "<text>"
},
"name": "add_text_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The complete body, as HTML or plain text (at most 50,000 characters). | |
| title | Yes | The block's title, shown above the text (unless hideTitle). | |
| width | No | quarter, third, half, two-thirds or full (default full). | |
| confirm | No | Set true to add it. Omit for a preview. With confirm:true, also pass the preview's previewToken. | |
| anchorId | No | With position before or after: the id of the widget it goes next to (from get_report). After a section = after everything in that section. | |
| position | No | Where the block goes (default end). before and after need anchorId. | |
| reportId | Yes | Report id (from list_reports). | |
| hideTitle | No | Hide the title in the report (default false). | |
| previewToken | No | With confirm:true: the previewToken from this tool's preview (valid 15 minutes, once, for exactly the previewed arguments). |