Voltar ao índice
Ferramentas e automação Fonte oficial

Automação do Google Slides com gws

Leia, crie e atualize apresentações do Google Slides pelo CLI gws, usando schemas para montar operações e alterações em lote.

Ver código no GitHub Instala diretamente do repositório-fonte.

O que esta skill faz

Esta skill descreve o acesso à API Google Slides pelo comando gws. Ela cobre criação e leitura de apresentações, operações sobre páginas e batchUpdate, cuja validação é atômica: uma solicitação inválida impede todo o lote.

Quando usar

  • Criar uma apresentação vazia
  • Ler a versão mais recente de um deck
  • Aplicar várias alterações com batchUpdate
  • Executar operações sobre páginas
  • Inspecionar parâmetros de métodos da API

Como usar

  1. Leia a skill compartilhada do gws para autenticação e segurança
  2. Use gws slides --help para descobrir recursos
  3. Consulte gws schema para o método desejado
  4. Monte --params e --json conforme o schema
  5. Revise todas as requisições antes de enviar um batchUpdate

O que revisar antes de instalar

  • Requer o binário gws e autenticação válida
  • create gera uma apresentação vazia e ignora outros conteúdos fornecidos
  • Um item inválido faz todo o batchUpdate falhar sem aplicar mudanças

SKILL.md

---
name: gws-slides
description: "Google Slides: Read and write presentations."
metadata:
  version: 0.22.5
  openclaw:
    category: "productivity"
    requires:
      bins:
        - gws
    cliHelp: "gws slides --help"
---

# slides (v1)

> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.

```bash
gws slides <resource> <method> [flags]
```

## API Resources

### presentations

  - `batchUpdate` — Applies one or more updates to the presentation. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests.
  - `create` — Creates a blank presentation using the title given in the request. If a `presentationId` is provided, it is used as the ID of the new presentation. Otherwise, a new ID is generated. Other fields in the request, including any provided content, are ignored. Returns the created presentation.
  - `get` — Gets the latest version of the specified presentation.
  - `pages` — Operations on the 'pages' resource

## Discovering Commands

Before calling any API method, inspect it:

```bash
# Browse resources and methods
gws slides --help

# Inspect a method's required params, types, and defaults
gws schema slides.<resource>.<method>
```

Use `gws schema` output to build your `--params` and `--json` flags.