document_insert_paragraph
Insert a new paragraph at a specific position in LibreOffice Writer documents. Specify text, location, and optional style for precise document editing.
Instructions
Insert a new paragraph at a specific index in a Writer document.
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": {
"docId": "<docId>",
"text": "<text>",
"index": "<index>"
},
"name": "document_insert_paragraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Document handle returned by document_open | |
| text | Yes | Paragraph text | |
| index | Yes | Index at which to insert the paragraph (0-based) | |
| style | No | Style name (e.g., "Heading 1", "Normal") |