document_apply_style
Apply heading or paragraph styles to specific paragraphs in LibreOffice documents to format text consistently and structure documents efficiently.
Instructions
Apply a heading or paragraph style to a specific paragraph by index.
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>",
"paragraphIndex": "<paragraphIndex>",
"style": "<style>"
},
"name": "document_apply_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Document handle returned by document_open | |
| paragraphIndex | Yes | Index of the paragraph to style (0-based) | |
| style | Yes | Style to apply (e.g., Heading 1, Heading 2, Heading 3, Heading 4, Heading 5, Heading 6, Normal) |