owa_slide_edit
Edit slide documents by reading, updating, adding, deleting, duplicating, moving, or restyling slides, text boxes, and backgrounds, with unsaved changes kept for user review and undo.
Instructions
Change one of the user's slide documents. file: the document as attached, or its name in Documents. slides reads every slide: its boxes with id, words, position and style, in pixels on a slide of width x height. update-slides changes MANY slides in one call: changes [{slide, items}]; an item with id edits that box (text, fontSize, fontFamily, fontWeight, color, backgroundColor, align left|center|right, valign top|center|bottom, left, top, width, height, rotate, round (corner rounding); remove: true takes it off), one without id adds a text box. add-slides adds new slides in one call: changes [{items}] (slide: where it goes, else at the end), each item a new text box, listed back to front -- a box filling the slide with a backgroundColor and no text is its background. update-slide / add-slide take slide and items for one slide; delete-slide and duplicate-slide slide; move-slide slide and to. set-background puts background (a color, a name from backgroundChoices, or "none") behind slides (numbers; all when left out): kept at once, no Save. Colors #RRGGBB or #RRGGBBAA. Every other change stays UNSAVED (a * beside the name, Ctrl+Z undoes it) for the user to Save; each keeps a backup owa_undo puts back -- say so. Change only what was asked.
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": {
"file": "<file>",
"action": "<action>"
},
"name": "owa_slide_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| file | Yes | ||
| page | No | ||
| items | No | ||
| slide | No | ||
| action | Yes | ||
| slides | No | ||
| changes | No | ||
| background | No |