set_slides_background
Sets a slide's background to a solid hex color, overriding inherited master or layout background. Specify opacity for transparency control.
Instructions
Set the background fill color of a single slide (the page itself).
Changes the slide's own background — distinct from styling a shape placed
on the slide. For per-shape fill, use style_slides_shape. To change
background for multiple slides, call this tool once per slide.
Requires OAuth scope: https://www.googleapis.com/auth/presentations (write).
Overrides any inherited master/layout background with a solid color.
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": {
"user_google_email": "<user_google_email>",
"presentation_id": "<presentation_id>",
"page_object_id": "<page_object_id>",
"color": "<color>"
},
"name": "set_slides_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| presentation_id | Yes | Google Slides presentation ID (from the URL after `/d/`). | |
| page_object_id | Yes | Object ID of the slide whose background to change. Get it from `get_presentation.slides[].objectId`. Must reference a slide page (not a master/layout). | |
| color | Yes | Hex color for the background, e.g., `#F5F5F5` or `F5F5F5`. Accepts `#RRGGBB` or `RRGGBB`. | |
| alpha | No | Opacity of the background fill, 0.0 (transparent) to 1.0 (opaque). Default `1.0`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |