KosmoKrator

productivity

Google Slides CLI for AI Agents

Use the Google Slides CLI from KosmoKrator to call Google Slides tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 5 read 2 write Manual OAuth token auth

Google Slides CLI Setup

Google Slides can be configured headlessly with `kosmokrator integrations:configure google-slides`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure google-slides --set access_token="$GOOGLE_SLIDES_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor google-slides --json
kosmokrator integrations:status --json

Credentials

Authentication type: Manual OAuth token oauth2_manual_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
access_token GOOGLE_SLIDES_ACCESS_TOKEN Secret secret yes Access Token
url GOOGLE_SLIDES_URL URL url no API Base URL

Call Google Slides Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call google-slides.gslides_list_presentations '{
  "pageSize": 1,
  "pageToken": "example_pageToken"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:google-slides gslides_list_presentations '{
  "pageSize": 1,
  "pageToken": "example_pageToken"
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs google-slides --json
kosmo integrations:docs google-slides.gslides_list_presentations --json
kosmo integrations:schema google-slides.gslides_list_presentations --json
kosmo integrations:search "Google Slides" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Google Slides.

google-slides.gslides_list_presentations

Read read

List Google Slides presentations from the user's Drive. Returns presentation IDs, titles, and metadata.

Parameters
pageSize, pageToken

Generic CLI call

kosmo integrations:call google-slides.gslides_list_presentations '{"pageSize":1,"pageToken":"example_pageToken"}' --json

Provider shortcut

kosmo integrations:google-slides gslides_list_presentations '{"pageSize":1,"pageToken":"example_pageToken"}' --json

google-slides.gslides_get_presentation

Read read

Get full details of a specific Google Slides presentation, including all slides, page elements, and layout information.

Parameters
id

Generic CLI call

kosmo integrations:call google-slides.gslides_get_presentation '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:google-slides gslides_get_presentation '{"id":"example_id"}' --json

google-slides.gslides_create_presentation

Write write

Create a new, blank Google Slides presentation with a given title.

Parameters
title

Generic CLI call

kosmo integrations:call google-slides.gslides_create_presentation '{"title":"example_title"}' --json

Provider shortcut

kosmo integrations:google-slides gslides_create_presentation '{"title":"example_title"}' --json

google-slides.gslides_list_slides

Read read

List all slides in a Google Slides presentation. Returns slide object IDs and thumbnails.

Parameters
id, pageSize, pageToken

Generic CLI call

kosmo integrations:call google-slides.gslides_list_slides '{"id":"example_id","pageSize":1,"pageToken":"example_pageToken"}' --json

Provider shortcut

kosmo integrations:google-slides gslides_list_slides '{"id":"example_id","pageSize":1,"pageToken":"example_pageToken"}' --json

google-slides.gslides_get_slide

Read read

Get details of a specific slide (page) in a Google Slides presentation, including all page elements and their properties.

Parameters
id, page, objectIdField

Generic CLI call

kosmo integrations:call google-slides.gslides_get_slide '{"id":"example_id","page":"example_page","objectIdField":"example_objectIdField"}' --json

Provider shortcut

kosmo integrations:google-slides gslides_get_slide '{"id":"example_id","page":"example_page","objectIdField":"example_objectIdField"}' --json

google-slides.gslides_create_slide

Write write

Add a new slide to an existing Google Slides presentation. Optionally add text boxes and shapes to the new slide.

Parameters
id, pageObjectId, createObject, elements

Generic CLI call

kosmo integrations:call google-slides.gslides_create_slide '{"id":"example_id","pageObjectId":"example_pageObjectId","createObject":true,"elements":"example_elements"}' --json

Provider shortcut

kosmo integrations:google-slides gslides_create_slide '{"id":"example_id","pageObjectId":"example_pageObjectId","createObject":true,"elements":"example_elements"}' --json

google-slides.gslides_get_current_user

Read read

Get the authenticated Google user's profile information (display name, email, photo).

Parameters
none

Generic CLI call

kosmo integrations:call google-slides.gslides_get_current_user '{}' --json

Provider shortcut

kosmo integrations:google-slides gslides_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

google-slides.gslides_list_presentations

List Google Slides presentations from the user's Drive. Returns presentation IDs, titles, and metadata.

Operation
Read read
Schema command
kosmo integrations:schema google-slides.gslides_list_presentations --json
ParameterTypeRequiredDescription
pageSize integer no Maximum number of presentations to return per page (default: 20, max: 100).
pageToken string no Token for the next page of results from a previous response.

google-slides.gslides_get_presentation

Get full details of a specific Google Slides presentation, including all slides, page elements, and layout information.

Operation
Read read
Schema command
kosmo integrations:schema google-slides.gslides_get_presentation --json
ParameterTypeRequiredDescription
id string yes The presentation ID (found in the Google Slides URL or from list_presentations).

google-slides.gslides_create_presentation

Create a new, blank Google Slides presentation with a given title.

Operation
Write write
Schema command
kosmo integrations:schema google-slides.gslides_create_presentation --json
ParameterTypeRequiredDescription
title string yes The title for the new presentation.

google-slides.gslides_list_slides

List all slides in a Google Slides presentation. Returns slide object IDs and thumbnails.

Operation
Read read
Schema command
kosmo integrations:schema google-slides.gslides_list_slides --json
ParameterTypeRequiredDescription
id string yes The presentation ID.
pageSize integer no Maximum number of slides to return per page.
pageToken string no Token for the next page of results from a previous response.

google-slides.gslides_get_slide

Get details of a specific slide (page) in a Google Slides presentation, including all page elements and their properties.

Operation
Read read
Schema command
kosmo integrations:schema google-slides.gslides_get_slide --json
ParameterTypeRequiredDescription
id string yes The presentation ID.
page string yes The slide (page) object ID.
objectIdField string no The field to use for resolving object IDs in the response.

google-slides.gslides_create_slide

Add a new slide to an existing Google Slides presentation. Optionally add text boxes and shapes to the new slide.

Operation
Write write
Schema command
kosmo integrations:schema google-slides.gslides_create_slide --json
ParameterTypeRequiredDescription
id string yes The presentation ID.
pageObjectId string no Optional custom object ID for the new slide. If omitted, Google will generate one.
createObject boolean no Whether to create the slide object (default: true).
elements array no Optional array of elements to add to the new slide. Each element has: type ("text" or "shape"), shape (shape type like "RECTANGLE"), text (content string), and style (object with size, transform, font properties).

google-slides.gslides_get_current_user

Get the authenticated Google user's profile information (display name, email, photo).

Operation
Read read
Schema command
kosmo integrations:schema google-slides.gslides_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.