add_textbox
Add a styled text box to a LibreOffice slide, setting position, size, font, color, and alignment. Supports multi-line text and precise percentage-based placement.
Instructions
Place a styled text box. x/y/w/h are percent (0-100) of the slide;
size is in points; color is hex; align is left|center|right; valign is
top|center|bottom. Use newlines in text for multiple lines.
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>",
"slide": "<slide>",
"text": "<text>",
"x": "<x>",
"y": "<y>",
"w": "<w>",
"h": "<h>"
},
"name": "add_textbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | ||
| w | Yes | ||
| x | Yes | ||
| y | Yes | ||
| bold | No | ||
| font | No | ||
| size | No | ||
| text | Yes | ||
| align | No | left | |
| color | No | #222222 | |
| slide | Yes | ||
| doc_id | Yes | ||
| italic | No | ||
| valign | No | top |