Get Presentation
get_presentationRead a Google Slides deck to list its slides and layouts, get one slide's element IDs and text, or export a slide as JSON with geometry and styles.
Instructions
Read a deck: action "deck" (default) lists its slides and layouts, "page" gives one slide's element IDs and all its text (start here for content), "markup" gives one slide's elements as compact JSON with geometry and styles, "layouts" lists every layout.
Actions: - "deck": Title, URL, revision, and per slide its ID, title, layout, element counts and notes length; then the deck's layouts with the placeholders each provides. Lists 100 slides per call; a longer deck ends with the offset to call again with. Uses offset. - "layouts": Every layout, grouped by master, with its placeholders and the slides using it. Only needed when "deck" says there are more layouts than it lists. Uses after. - "page": Every element on one slide with its ID, in z-order, groups nested, with all text, table cells, image sources and speaker notes. No geometry or styling. Requires page_id. - "markup": One slide, or chosen elements, as JSON: boxes in points ({"x","y","w","h"}), text as paragraphs and runs, styles in a shared "styles" table referenced by "s", only locally set properties. A shape with no "shape" key is a TEXT_BOX. Requires page_id; uses targets and raw.
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>"
},
"name": "get_presentation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | For "markup": return the Slides API Page resource itself (EMU, transforms, text indices), limited to targets when given, for writing raw batch_update_presentation requests. A target in a group keeps its group-relative transform. Defaults to False. | |
| after | No | For "layouts": a slide ID, or "start". Lists only the layouts of the master in use at that position, which are the only ones a new slide inserted there can use. | |
| action | No | "deck" (default): slides and layouts. "page": one slide's element IDs and text. "markup": one slide's elements as JSON with geometry and styles. "layouts": every layout. | deck |
| offset | No | For "deck": index of the first slide to list, from the note at the end of a previous call. Defaults to 0. | |
| page_id | No | Slide (or any page) object ID, from "deck". Required for "page" and "markup". | |
| targets | No | For "markup": element IDs to return instead of the whole slide, plus "notes" for the speaker notes. A target inside a group comes back with page coordinates and its "group" ID; a group comes back with its children. | |
| presentation_id | Yes | The ID of the presentation. | |
| user_google_email | Yes | The user's Google email address. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |