Insert text
Insert text, or HTML (headings, lists, tables, links, formatting and pictures), at the start or end of the document, or just before or after a marker text or a bookmark, optionally with its own font formatting.
Command in the Word toolkit · id ooa.word/insert_text · 12 inputs (1 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Text to insert; line breaks are kept. | |
| Position | String | No | end | Where to insert: end, start of the document, after_text, before_text, bookmark, or cursor: where the last Insert text of this session ended (G3, AA's cursor; the end at first). |
| Anchor | String | No | Marker text or bookmark name the position refers to. | |
| New paragraph | Boolean | No | true | Put the text in its own paragraph; false adds it inside the existing paragraph. |
| Session | String | No | word | Session name. |
| Bold | Boolean | No | Bold on or off for the inserted text; unchanged when empty. | |
| Italic | Boolean | No | Italic on or off for the inserted text. | |
| Underline | Boolean | No | Single underline on or off for the inserted text. | |
| Size | Number | No | Font size in points for the inserted text. | |
| Color | String | No | Hex colour for the inserted text. | |
| Font | String | No | Font name for the inserted text, e.g. Calibri. | |
| As HTML | Boolean | No | false | The text is HTML: headings, paragraphs, bold/italic/underline, colours and sizes, links, bulleted and numbered lists, tables and pictures (data: URIs or local files) become Word formatting; it always starts in its own paragraph. |