style_slides_shape
Modify an existing shape's fill and outline properties in Google Slides: set fill color/opacity, outline color, thickness, and dash pattern.
Instructions
Style an existing shape's fill and outline on a Google Slide.
Use this to change the look of a shape that already exists — background
fill color/opacity, outline color, outline thickness, dash pattern.
For paragraph-level text formatting inside the shape (alignment, bullets),
use format_slides_paragraph. For character styling of text (bold, font
size), use format_slides_text. To create the shape in the first place,
use create_slides_shape.
Requires OAuth scope: https://www.googleapis.com/auth/presentations (write).
Only fields passed in will be updated — omitted args are left unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| presentation_id | Yes | Google Slides presentation ID (from the URL after `/d/`). | |
| page_element_id | Yes | Object ID of the target shape. Get it from `get_presentation.slides[].pageElements[].objectId` or `get_page`. Must be a shape element; table cells and images will error. | |
| fill_color | No | Hex color for the shape interior, e.g., `#FFCC00` or `FFCC00`. Omit to leave existing fill unchanged. | |
| fill_alpha | No | Opacity of the fill, 0.0 (transparent) to 1.0 (opaque). Default `1.0`. Only meaningful when `fill_color` is also set. | |
| outline_color | No | Hex color for the shape's outline/border, e.g., `#000000`. Omit to leave outline color unchanged. | |
| outline_weight | No | Outline thickness in points (e.g., `1.5`, `3`, `6`). Omit to leave outline weight unchanged. | |
| outline_dash_style | No | Line style for the outline. One of `SOLID`, `DASH`, `DOT`, `DASH_DOT`, `LONG_DASH`, `LONG_DASH_DOT`. Omit to leave unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |