r7_slide_format
Format or reposition a single object on a PPTX slide in place. Set text, fonts, geometry, fill, borders, lists, spacing, and alignment while leaving other author settings untouched.
Instructions
Format or reposition one object on a PPTX slide, in place. Sets font (family, size, bold, italic, underline, colour), geometry (x, y, width, height, rotation, z-order), fill and border, paragraph alignment, bullet and numbered lists, line and paragraph spacing, and can replace the object's text. Only the properties you name change: gradients, shadows, hyperlinks and everything else the author set are left untouched. Falls back to the slide's first text object when no target is named.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Left edge. A number is EMU; "2cm", "1in", "30px" and "24pt" also work. | |
| y | No | Top edge, same units as x. | |
| bold | No | ||
| caps | No | Capitalisation. | |
| fill | No | Solid fill colour, e.g. "#1F6FEB". Use "none" for no fill. | |
| line | No | Border colour, e.g. "#0B3D91". Use "none" for no border. | |
| size | No | Font size in points, e.g. 24. | |
| text | No | Replace the object's entire text with this one paragraph. | |
| color | No | Font colour, e.g. "#C00000". | |
| level | No | Outline level 0..8. | |
| width | No | Width, same units as x. | |
| arrows | No | Arrow heads for a line: true for one arrow at the end, { head, tail } with triangle/stealth/arrow/diamond/oval. | |
| bullet | No | true adds a bullet, false removes it. Combine with numbered. | |
| family | No | Font name, e.g. "Arial" or "Georgia". Applied to Latin, Cyrillic and complex scripts alike, so Cyrillic does not silently keep the theme font. | |
| height | No | Height, same units as x. | |
| indent | No | First-line indent, e.g. "-18pt". | |
| italic | No | ||
| noFill | No | Remove the fill entirely. | |
| noLine | No | Remove the border entirely. | |
| strike | No | ||
| zOrder | No | Position in the object list; 0 is furthest back. Omit to place the object on top. | |
| spacing | No | Character spacing in points (negative tightens). | |
| filePath | Yes | Path to the PPTX file. | |
| numbered | No | true makes the list numbered instead of bulleted. | |
| objectId | No | Shape id, exactly as r7_slide_read reported it. The most precise way to address an object. | |
| rotation | No | Clockwise rotation in degrees. | |
| alignment | No | Horizontal paragraph alignment. | |
| highlight | No | Text highlight colour, e.g. "#FFFF00". | |
| lineStyle | No | Border dash style: solid, dash, dot, lgDash, sysDot. | |
| lineWidth | No | Border width in points, e.g. 1.5. | |
| underline | No | true for a single underline, false to remove it, or a style: double, heavy, dotted, dash, wavy. | |
| marginLeft | No | Left indent, e.g. "24pt" or EMU as a number. | |
| objectName | No | Shape name, as an alternative to objectId. | |
| outputPath | No | Write to a copy instead of editing in place. | |
| paragraphs | No | Replace the text body with these paragraphs (a string each, or { text, runs?, ...options }). | |
| slideIndex | No | 0-based position of the slide in the deck. | |
| spaceAfter | No | Space after the paragraph, in points. | |
| lineSpacing | No | Proportional line spacing, 1 = single, 1.5 = one and a half. | |
| objectIndex | No | 0-based index among the objects that live on the slide. | |
| spaceBefore | No | Space before the paragraph, in points. | |
| transparency | No | Font colour transparency 0..1 (0 = opaque). | |
| paragraphIndex | No | Apply the paragraph options to this single paragraph (0-based) instead of all of them. | |
| verticalAnchor | No | Where the text sits inside its box. | |
| bulletCharacter | No | Custom bullet glyph, e.g. "–". | |
| placeholderType | No | Address a placeholder by role: title, ctrTitle, subTitle, body, pic, tbl. | |
| fillTransparency | No | Fill transparency 0..1 (0 = opaque). | |
| lineTransparency | No | Border transparency 0..1. |