set_paragraph_style
Apply a paragraph style such as Heading 1 or Title to a specific paragraph in a LibreOffice document. Optionally specify the paragraph index; defaults to the last paragraph.
Instructions
Apply a paragraph style (e.g. "Heading 1", "Title") to an existing paragraph.
Defaults to the last paragraph if paragraph_index is omitted. Index is 0-based (negative indices count from the end, Python-style) and counts paragraphs only — tables don't 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": {
"doc_id": "<doc_id>",
"style": "<style>"
},
"name": "set_paragraph_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | Yes | ||
| doc_id | Yes | ||
| paragraph_index | No |