add_text_widget
Add a TEXT widget — a free-text block you write yourself (an analysis, a summary, next steps) — to a report. Deterministic, no AI: the text goes in exactly as given, as HTML (p, strong, ul, li, h2…) or plain text, at most 50,000 characters; scripts, event handlers, unsafe links, embedded frames and any inline style other than text-align are removed first. 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. To change an existing text block call edit_widget with text; for a data widget (table, chart, KPI) call add_widget. Requires MCP write actions; preview first, then confirm.
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). |