bygoogleworkspace· 58 skills
Google Slides: Read and write presentations.
$npx -y skills add googleworkspace/cli --skill gws-slidesInstalls into the current project.
Run `npx skills use "https://github.com/googleworkspace/cli" --skill "googleworkspace/cli/gws-slides"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/googleworkspace/cli" that are relevant to the current task. Run `npx skills add "https://github.com/googleworkspace/cli"` and select the relevant skills, then follow their instructions.
| 1 | # slides (v1) |
| 2 | |
| 3 | > **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it. |
| 4 | |
| 5 | ```bash |
| 6 | gws slides <resource> <method> [flags] |
| 7 | ``` |
| 8 | |
| 9 | ## API Resources |
| 10 | |
| 11 | ### presentations |
| 12 | |
| 13 | - `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. |
| 14 | - `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. |
| 15 | - `get` — Gets the latest version of the specified presentation. |
| 16 | - `pages` — Operations on the 'pages' resource |
| 17 | |
| 18 | ## Discovering Commands |
| 19 | |
| 20 | Before calling any API method, inspect it: |
| 21 | |
| 22 | ```bash |
| 23 | # Browse resources and methods |
| 24 | gws slides --help |
| 25 | |
| 26 | # Inspect a method's required params, types, and defaults |
| 27 | gws schema slides.<resource>.<method> |
| 28 | ``` |
| 29 | |
| 30 | Use `gws schema` output to build your `--params` and `--json` flags. |