document_insert_text
Insert text into LibreOffice Writer documents at specific positions: beginning, end, or after headings. Use to add content with paragraph styles.
Instructions
Insert text into a Writer document at a specified position. Position options: 'start' (beginning), 'end' (end of document), or after a specific heading text.
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>"
},
"name": "document_insert_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Document handle returned by document_open | |
| text | Yes | Text content to insert | |
| position | No | Where to insert: start, end, or after_heading | end |
| headingText | No | Required when position is after_heading: the heading text to insert after | |
| style | No | Paragraph style (e.g., "Heading 1", "Normal"). Default: Normal |