insert_paragraph
Insert a new paragraph into a live Word document with optional styling and placement at the start, end, or before/after a specific paragraph.
Instructions
Insert a new paragraph into the document, optionally with a style (e.g. "Heading 1", "Title", "Quote"). Insert at the start or end of the body, or before/after a given paragraph index. Returns the new paragraph count.
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": {
"text": "<text>"
},
"name": "insert_paragraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Paragraph text. Use empty string for a blank paragraph. | |
| index | No | Paragraph index for location beforeIndex/afterIndex. | |
| style | No | Style name, e.g. "Heading 1", "Heading 2", "Title", "Quote", "Normal". Built-in names are matched locale-independently. | |
| location | No | Where to insert. Default "end". | |
| documentId | No | Target document ID from list_documents. Optional when only one document is connected. |