google-slides
Build and edit Google Slides through the google-slides MCP tools - slides, grids of cards and columns, text boxes, shapes, images, tables, styling, layout inspection, and per-slide PNG rendering. Use when creating a deck, laying out slide elements, matching a template, or verifying how a slide looks.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- google-slides
- description
- Build and edit Google Slides through the google-slides MCP tools - slides, grids of cards and columns, text boxes, shapes, images, tables, styling, layout inspection, and per-slide PNG rendering. Use when creating a deck, laying out slide elements, matching a template, or verifying how a slide looks.
03 SKILL.md 正文
Google Slides authoring
Coordinates are POINTS from the slide's top-left; a standard slide is 720x405
(read_slide_layout reports the real size). Everything is addressed by
objectId from read_presentation. Pass requiredRevisionId from the latest
read or write so a concurrent edit fails the write instead of corrupting it.
Building a new deck: compose, then look
Write each slide as a layout, not as coordinates. compose_slide takes a
tree (stacks, grids, cards, text, images) or an HTML/CSS subset and lays
the whole slide out in one call: equal peer sizes, even gutters, vertical
centering, and contrast pairs hold by construction, text can fit: "shrink", and the reply carries every element's box plus lints on the
plan. Per slide:
add_slidelayout BLANK (or the deck's first slide withclear: true), thencompose_slidewith the SAMEthemeevery time (palette roles background/surface/primary/textSecondary and the font family). Colors in the tree are roles, not hexes, so one theme change restyles a deck.- Read the reply's
issues.text_overflowmeans shorten,fit: "shrink", or give the node moresize; anoverlapmeans two nodes share a box (usually a row that needsgap). get_slide_thumbnail(LARGE) once per slide and LOOK at it: crowding, dead corners, a title that reads as body text, an image fighting the palette. Fix by re-composing the slide (delete the old elements first, or compose onto a fresh BLANK slide anddelete_objectthe old one).
Tree recipes (column root; the root box is the slide minus a 48 pt margin):
- Title slide:
stack column justify:centerwith adisplaytext and anh2subtitle intextSecondary, bothalign:center. - KPI cards:
h1, then astack row size:150 gap:24ofcards, each with acaptionlabel (textSecondary) over akpivalue. - Text + image:
stack row gap:32of abodytext (bullets:true,size:{flex:1}) and animage(size:{flex:1}); the image aspect-fits. - Agenda: one
bodytext with newline-separated items andbullets:true.
HTML form, same result: <section style="background:#0B2A4A; padding:48pt; gap:24pt"> with <h1>, <div style="display:flex; gap:24pt; height:150pt">
of <article class="card"><span class="caption">…</span><span class="kpi">…</span></article>, <ul><li> bullets, <img style="flex:1">.
Only the documented tags and properties compile; anything else is refused
by name, never dropped.
Editing an existing deck: place, inspect, fix, look
For decks that already have content, or elements the tree does not model:
insert_gridfor any row, column, or grid of cards/text/images (one call, aligned, equal sizes);insert_text_box/insert_shape/insert_imagefor singletons.read_slide_layout: every element's box, z-order, text style, estimated wrapped height (textFit.fits), andissues. Fix everyerrorandwarn(text_overflow,overlap,off_slide,low_contrastwith the fill actually behind the text named) and theinfoitems when cheap (near_miss_alignment,unequal_peers,tight_margin,empty_placeholder).get_slide_thumbnailonce the lints are clean, and look.
Grid conventions (when placing by hand)
Title at x 40, y 32, 640 wide, height 60-70 for one line of 28-34 pt (two
lines need ~110); subtitle under it at 16-18 pt. Content region x 40, y 130,
640 x 235 (insert_grid's default). Footer at y 370, 12 pt. Keep 40 pt side
margins unless an element is deliberately full-bleed. Process flows:
insert_grid the step shapes (columns = steps), then connect_shapes
between neighbors; connectors follow shapes when moved.
A 34 pt bold title wraps past ~32 characters in a 600 pt box and spills over
whatever sits below (the API does not grow boxes). textFit in the layout
read and issues in the compose reply predict this; long titles go to
24-28 pt, fit: "shrink", or two lines with the subtitle pushed down.
Palette and contrast
Pick a palette FIRST and reuse it on every slide (as compose_slide's
theme.palette): background, one card/surface color, one accent, and a
secondary text color; on-colors derive automatically. When the user names a
template or brand, take its colors; otherwise these pairs pass WCAG AA as-is:
- Dark: background #0B2A4A, cards #1E4976, accent #4FC3F7, titles/text #FFFFFF, secondary #B8CCE0.
- Light: background #FFFFFF, cards #F1F3F4, accent #0B57D0 (white text on it), text #202124, secondary #444746.
Text color never defaults sensibly on a colored fill: every text-bearing
call picks its color against the fill BEHIND the text (the card's, not the
slide's). No mid-gray on mid-anything; on white, secondary text is #444746
or darker (#5F6368 is borderline, lighter fails). For a template or brand
palette, run check_contrast on every text/fill pair you intend to use
before writing (it returns a passing tint or shade for each failing pair);
low_contrast in the layout read is the check afterwards.
Tables on colored slides render dark-on-dark from theme fills:
set_table_cell_fill every cell (light fill + dark text, or accent + white)
and restyle with set_text_style (cellRow/cellColumn). Prefer stat cards
over a grid of numbers on title and summary slides; a table only for
genuinely tabular data, with the header row filled in the accent and kept
to a handful of rows.
Slides and repetition
create_presentationstarts with one blank slide (delete its placeholders, or fill them withset_shape_text); it cannot target a folder, so move it after with google-drivegoogle_drive_move_or_rename.add_slidewith a predefined layout fills title/body placeholders in the same call (fastest theme-consistent slide);move_slidereorders.- Repeated layouts (one template, N variants): build the first slide
fully, then per variant
duplicate_objecton the slide id (the copy lands right after) andreplace_textscoped bypageObjectIdsto the copy; distinct placeholders like {{TITLE}} keep the replaces unambiguous. set_shape_textREPLACES a shape's or cell's whole text (cell = {rowIndex, columnIndex});set_text_stylerestyles all of one shape or cell, not a range.update_element_positionmoves but does not resize: delete and re-create at the right size instead.- Speaker notes:
set_shape_textwith pageObjectId = the slide's notesPageId and objectId = speakerNotesObjectId fromread_presentation. - Whole-deck render: google-drive
google_drive_export_file(pdf).
04 同仓库更多 Skills
X MCP guide
ALWAYS read this before using any X tool (the X plugin, any X MCP, or Grok Bot's built-in public X reads) and again on any X error. X tools are included in Grok Bot at no cost: never estimate costs, check credits, or tell the user to buy credits. tools=0 / user-X-* not found is a setup failure, not a paywall. Covers Spaces, communities, and Lists (reads and list writes), X Chat (XChat, inbox, DMs, unread, message requests, Chat PIN, juicebox, xchat_lite: clone xchat-grokbot-helper yourself and decrypt locally), scheduled X calls (schedule_call, list_scheduled_calls and the other call tools), and livestreams (stream sources, broadcasts, scheduled broadcasts, broadcast chat, moderators, mutes). Chat, call, livestream, Spaces, or Lists tools missing while other X tools work: reconnect the X plugin.
X Money guide
Read this before the first X Money action in a session and again on any X Money error, refusal, or missing capability. Covers the approval rule for every action that moves money (always ask, every time, no exceptions), how the connection works (connection code plus passkey in the X app), how to guide the user through connect, reconnect, and revoke at x.com/i/money/settings/connections, and what each failure message means.
google-sheets
Build and edit Google Sheets with the google-sheets tools - values, formatting, charts, conditional formatting, structure, validation, named and protected ranges. Use when creating a spreadsheet or dashboard, formatting cells, adding or fixing charts, or reorganizing tabs and rows.
google-drive
Work with Google Drive through its MCP tools - search, read, create, organize, share, comment, and export files. Use when creating files in specific folders, moving or renaming, converting Markdown/CSV into Docs/Sheets, managing comments, or exporting a rendered PDF.
google-docs
Author and edit Google Docs with the google-docs tools - structured writing, character and paragraph styling, lists, tables, images, headers/footers. Use when creating a formatted document, editing document content, or applying styles.
thermos
Launch both thermo-nuclear review subagents in parallel, then synthesize their findings. Use for thermos, double thermo review, or combined bug/security and code-quality branch audits.