Skip to main content

Overview

Create and edit Google Slides presentations.. Through Langdock’s integration, you can access and manage Google Slides directly from your conversations.
Authentication: OAuth Category: Productivity & Collaboration Availability: All workspace plans

Available Actions

Create presentation

google_slides.create_presentation
Create a new blank presentation with a title. Requires Confirmation: No Parameters:
  • title (TEXT, Required): The title for the new presentation. This will be shown in Google Drive and at the top of the presentation window. Choose a descriptive title that reflects the presentation’s content or purpose.
  • targetFolderId (TEXT, Optional): The Google Drive folder ID where the presentation should be created. Supports both My Drive and Shared Drive folders. If not provided, the presentation will be created in your My Drive root folder. To get a folder ID: open the folder in Google Drive, look at the URL which will be like ‘https://dr
  • locale (TEXT, Optional): The locale/language setting for the presentation, which affects default text formatting and spell checking. Use standard locale codes like ‘en-US’ for US English, ‘en-GB’ for British English, ‘es-ES’ for Spanish (Spain), ‘fr-FR’ for French (France), etc. If not specified, uses your Google account…
Output: Returns the operation result

Get presentation

google_slides.get_presentation
Get presentation content as text, markdown, or JSON. Requires Confirmation: No Parameters:
  • presentationId (TEXT, Required): The ID of the Google Slides presentation. This is the string of characters in the URL after ‘presentation/d/’ when viewing the presentation
  • outputFormat (SELECT, Optional): Format for the presentation content output
  • includeNotes (BOOLEAN, Optional): Include speaker notes in the output
  • includeImageUrls (BOOLEAN, Optional): Include downloadable URLs for images in the presentation (including charts/graphs as images)
  • fieldMask (TEXT, Optional): Optional field mask to optimize API performance by only fetching specific fields. This significantly reduces response size and improves speed for large presentations. Use dot notation for nested fields and parentheses for multiple subfields. Examples: ‘presentationId,title’ for just basic info; ’…
Output: Returns the operation result

Replace text

google_slides.replace_text
Find and replace text throughout your presentation. Perfect for mail-merge and filling templates with actual data. Requires Confirmation: Yes Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation where text will be replaced. This is the alphanumeric string found in the presentation URL between ‘/d/’ and ‘/edit’. For example, in ‘https://docs.google.com/presentation/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit’, the ID is ‘1Bxi…
  • textReplacements (OBJECT, Required): An array of text replacement configurations. Each item specifies the text to search for and what to replace it with. You can include placeholders with or without brackets (e.g., ‘{{customer-name}}’ or just the text to find). Each replacement can optionally specify case sensitivity and limit r…
  • matchCase (BOOLEAN, Optional): The default case sensitivity setting for all replacements. When true, ‘Hello’ will not match ‘hello’. When false, case is ignored. This can be overridden per replacement. Google recommends using case-sensitive matching (true) for template placeholders to avoid unintended replacements. For example…
Output: Returns the operation result

Copy presentation

google_slides.copy_presentation
Duplicate an existing presentation. Requires Confirmation: No Parameters:
  • presentationId (TEXT, Required): The ID of the Google Slides presentation to copy. This is the string of characters in the URL after ‘presentation/d/’ when viewing the presentation
  • newTitle (TEXT, Optional): Title for the copied presentation. If not provided, defaults to ‘Copy of presentation’
  • targetFolderId (TEXT, Optional): The Google Drive folder ID where the copy should be created. Supports both My Drive and Shared Drive folders. If not provided, the copy will be created in the root of My Drive
Output: Returns the operation result

Create slide

google_slides.create_slide
Add a new slide with your chosen layout. Requires Confirmation: No Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation where you want to add a new slide. This is the alphanumeric string found in the presentation URL between ‘/d/’ and ‘/edit’. You must have edit permissions for this presentation.
  • slideLayout (SELECT, Optional): The predefined layout to use for the new slide. This determines the arrangement of placeholders (title, body, columns, etc.) on the slide. Choose a layout that matches your content type. BLANK creates an empty slide, TITLE_AND_BODY is best for standard content, TITLE_AND_TWO_COLUMNS works well fo…
  • insertionIndex (NUMBER, Optional): The zero-based position where the slide should be inserted. 0 inserts at the beginning (making it the first slide), 1 inserts as the second slide, etc. If not specified or if the index is beyond the current slide count, the slide will be added at the end of the presentation. For a presentation wi…
  • objectId (TEXT, Optional): Optional custom identifier for the new slide. If provided, this ID can be used to reference the slide in subsequent API calls. Must be unique across all objects in the presentation. It’s recommended to use a UUID or let the system generate one automatically. Only specify this if you need to refer…
  • placeholderMappings (OBJECT, Optional): Optional array to assign custom IDs to the layout’s placeholder elements. This allows you to reference and modify specific placeholders (title, body, etc.) in the same batch request, improving performance. Each mapping should specify the placeholder type (TITLE, BODY, etc.) and index, along with …
Output: Returns the operation result

Add shape with text

google_slides.add_shape_with_text
Add shapes and text boxes to slides. Requires Confirmation: Yes Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation where you want to add the shape. This is the alphanumeric string found in the presentation URL between ‘/d/’ and ‘/edit’. For example, in the URL ‘https://docs.google.com/presentation/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit’, the…
  • slideId (TEXT, Required): The unique identifier of the specific slide within the presentation where the shape will be added. This is NOT the slide number but rather the slide’s object ID. You can obtain slide IDs by first using the ‘Get Presentation Content’ action with JSON output format, which will list all slides with …
  • shapeType (SELECT, Optional): The type of shape to create on the slide. TEXT_BOX is most commonly used for adding text content. RECTANGLE, ROUND_RECTANGLE, and ELLIPSE are useful for creating containers or highlighting areas. ARROW shapes are perfect for pointing to specific elements. SPEECH_BUBBLE creates a callout shape ide…
  • text (TEXT, Optional): The text to insert into the shape. For line breaks, use a backslash followed by n (\n) - NOT forward slash (/n). Example: ‘Line 1\nLine 2\nLine 3’. The text will adopt the default formatting of the presentation theme. Leave empty to create an empty shape for later use.
  • width (NUMBER, Optional): The width of the shape in the specified unit (default is Points). A typical slide is 720 points wide, so 350 points is approximately half the slide width. For text boxes, ensure the width is sufficient for your text content. Larger values create wider shapes. Common values: 100-200 for small shap…
  • height (NUMBER, Optional): The height of the shape in the specified unit (default is Points). A typical slide is 405 points tall, so 350 points would be most of the slide height. For text boxes, the height determines how much text can be displayed without scrolling. For geometric shapes, this controls the vertical size. Co…
  • positionX (NUMBER, Optional): The horizontal position of the shape from the left edge of the slide in the specified unit. 0 is the left edge of the slide. A typical slide is 720 points wide, so 360 would center the shape horizontally (minus half the shape width). Increase this value to move the shape right, decrease to move l…
  • positionY (NUMBER, Optional): The vertical position of the shape from the top edge of the slide in the specified unit. 0 is the top edge of the slide. A typical slide is 405 points tall, so 200 would place the shape roughly in the middle vertically (minus half the shape height). Increase this value to move the shape down, dec…
  • unit (SELECT, Optional): The unit of measurement for size and position values. PT (Points) is the most common and recommended unit - there are 72 points per inch, and a standard slide is 720x405 points (10x5.625 inches). EMU (English Metric Units) is a more precise unit where 914400 EMU = 1 inch, typically used for exact…
  • scaleX (NUMBER, Optional): The horizontal scaling factor for the shape. 1 means normal size, 2 means twice as wide, 0.5 means half as wide. This scales the shape after it’s created with the specified width. Useful for creating stretched or compressed shapes. Most commonly left at 1 for normal proportions. Values typically …
  • scaleY (NUMBER, Optional): The vertical scaling factor for the shape. 1 means normal size, 2 means twice as tall, 0.5 means half as tall. This scales the shape after it’s created with the specified height. Useful for creating stretched or compressed shapes. Most commonly left at 1 for normal proportions. Values typically r…
  • objectId (TEXT, Optional): An optional custom identifier for the shape. If provided, this ID can be used to reference the shape in subsequent API calls for updates or modifications. Must be unique within the presentation. If not provided, a unique ID will be automatically generated. Only use this if you need to reference t…
Output: Returns the operation result

Add line

google_slides.add_line
Draw lines, arrows, and connectors on slides. Requires Confirmation: No Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation. This is the alphanumeric string found in the presentation URL between ‘/d/’ and ‘/edit’. You must have edit permissions for this presentation.
  • slideId (TEXT, Required): The unique identifier of the specific slide where the line will be added. This is NOT the slide number but the slide’s object ID. You can obtain slide IDs using the ‘Get Presentation Content’ action with JSON output format.
  • lineType (SELECT, Optional): The type of line to create. STRAIGHT_LINE creates a simple straight line. Connector types create lines that can connect to shapes and bend/curve appropriately. Bent connectors have segments that turn at right angles. Curved connectors create smooth curves between points.
  • lineCategory (SELECT, Optional): The category of the line, which affects how it behaves. STRAIGHT for straight lines/connectors, BENT for right-angle connectors, CURVED for smooth curve connectors. This should match the line type chosen.
  • startX (NUMBER, Optional): The horizontal position of the line’s starting point in points (72 points = 1 inch). Measured from the left edge of the slide. Default is 100.
  • startY (NUMBER, Optional): The vertical position of the line’s starting point in points (72 points = 1 inch). Measured from the top edge of the slide. Default is 100.
  • endX (NUMBER, Optional): The horizontal position of the line’s ending point in points (72 points = 1 inch). Measured from the left edge of the slide. Default is 300.
  • endY (NUMBER, Optional): The vertical position of the line’s ending point in points (72 points = 1 inch). Measured from the top edge of the slide. Default is 100.
  • dashStyle (SELECT, Optional): The dash pattern of the line. SOLID creates a continuous line. Other options create various dashed or dotted patterns.
  • weight (NUMBER, Optional): The thickness of the line in points. Default is 1. Common values: 0.5 (thin), 1 (normal), 2 (medium), 3 (thick), 5 (heavy).
  • startArrow (SELECT, Optional): The arrow style at the beginning of the line. NONE for no arrow, various filled and hollow arrow types available.
  • endArrow (SELECT, Optional): The arrow style at the end of the line. NONE for no arrow. Most commonly used for directional arrows pointing to something.
  • lineColor (OBJECT, Optional): The color of the line. RGB values from 0 to 1 where 0 is no color and 1 is full intensity. For example, pure red is {red: 1, green: 0, blue: 0}. If not specified, uses the default line color.
  • objectId (TEXT, Optional): Optional custom identifier for the line. If provided, this ID can be used to reference the line in subsequent API calls. Must be unique within the presentation. If not provided, a unique ID will be automatically generated.
  • startConnectionId (TEXT, Optional): The ID of a shape to connect the start of the line to. Only works with connector line types (not STRAIGHT_LINE). The line will attach to the shape and move with it. Not all shapes support connections.
  • startConnectionSite (NUMBER, Optional): The connection site index on the start shape (0-3 typically). Different shapes have different connection points. 0 is usually top, 1 is right, 2 is bottom, 3 is left. Default is 0.
  • endConnectionId (TEXT, Optional): The ID of a shape to connect the end of the line to. Only works with connector line types (not STRAIGHT_LINE). The line will attach to the shape and move with it.
  • endConnectionSite (NUMBER, Optional): The connection site index on the end shape (0-3 typically). Different shapes have different connection points. 0 is usually top, 1 is right, 2 is bottom, 3 is left. Default is 0.
Output: Returns the operation result

Add table

google_slides.add_table
Insert tables with data into slides. Requires Confirmation: No Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation. This is the alphanumeric string found in the presentation URL between ‘/d/’ and ‘/edit’. You must have edit permissions for this presentation.
  • slideId (TEXT, Required): The unique identifier of the specific slide where the table will be added. This is NOT the slide number but the slide’s object ID. You can obtain slide IDs using the ‘Get Presentation Content’ action with JSON output format.
  • rows (NUMBER, Optional): The number of rows in the table. Must be between 1 and 20. Common values: 3-5 for simple comparisons, 7-10 for schedules, up to 20 for detailed data tables.
  • columns (NUMBER, Optional): The number of columns in the table. Must be between 1 and 20. Common values: 2-3 for comparisons, 4-6 for data tables, up to 20 for complex grids.
  • positionX (NUMBER, Optional): The horizontal position of the table in points (72 points = 1 inch). Measured from the left edge of the slide. Default is 100.
  • positionY (NUMBER, Optional): The vertical position of the table in points (72 points = 1 inch). Measured from the top edge of the slide. Default is 100.
  • width (NUMBER, Optional): The width of the table in points. Default is 400. The table will automatically distribute this width among columns. Standard slide width is 720 points.
  • height (NUMBER, Optional): The height of the table in points. Default is 200. The table will automatically distribute this height among rows. Standard slide height is 540 points.
  • initialData (OBJECT, Optional): Array of cell data to populate the table. Each object specifies a cell’s row index, column index, text content, and optional formatting (bold, italic, font size, colors, alignment). This allows you to create fully formatted tables in one operation.
  • objectId (TEXT, Optional): Optional custom identifier for the table. If provided, this ID can be used to reference the table in subsequent API calls for updates. Must be unique within the presentation. If not provided, a unique ID will be automatically generated.
Output: Returns the operation result

Update element transform

google_slides.update_element_transform
Move, resize, or rotate elements on slides. Requires Confirmation: Yes Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation containing the element to transform. This is the alphanumeric string found in the presentation URL between ‘/d/’ and ‘/edit’. For example, in ‘https://docs.google.com/presentation/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit’, the ID …
  • elementId (TEXT, Required): The unique identifier of the page element (shape, image, text box, etc.) you want to transform. You can obtain element IDs by using the ‘Get Presentation Content’ action with JSON output format, which lists all elements with their IDs. Element IDs look like ‘g1234567890_0_1’ or custom IDs if you …
  • applyMode (SELECT, Optional): Determines how the transformation is applied. ABSOLUTE mode completely replaces the element’s current position, size, and rotation with the values you provide (any omitted values reset to defaults: position to 0,0 and scale to 1,1). Use ABSOLUTE when you know exactly where/how big you want the el…
  • translateX (NUMBER, Optional): For ABSOLUTE mode: The exact X coordinate where the element’s top-left corner should be positioned, measured from the left edge of the slide. For RELATIVE mode: The distance to move the element horizontally (positive values move right, negative move left). Standard slide width is 720 points. Comm…
  • translateY (NUMBER, Optional): For ABSOLUTE mode: The exact Y coordinate where the element’s top-left corner should be positioned, measured from the top edge of the slide. For RELATIVE mode: The distance to move the element vertically (positive values move down, negative move up). Standard slide height is 405 points. Common va…
  • scaleX (NUMBER, Optional): For ABSOLUTE mode: The exact horizontal scale factor (1 = original size, 2 = double width, 0.5 = half width). For RELATIVE mode: Multiplies the current width (1 = no change, 1.5 = increase by 50%, 0.8 = shrink to 80%). Setting to 0 makes the element invisible. Negative values flip the element hor…
  • scaleY (NUMBER, Optional): For ABSOLUTE mode: The exact vertical scale factor (1 = original size, 2 = double height, 0.5 = half height). For RELATIVE mode: Multiplies the current height (1 = no change, 1.5 = increase by 50%, 0.8 = shrink to 80%). Setting to 0 makes the element invisible. Negative values flip the element ve…
  • rotationAngle (NUMBER, Optional): The angle to rotate the element, specified in degrees (not radians). Positive values rotate clockwise, negative values rotate counter-clockwise. For ABSOLUTE mode: Sets the exact rotation angle. For RELATIVE mode: Adds to the current rotation. Common values: 90 for quarter turn, 180 for half turn…
  • shearX (NUMBER, Optional): The horizontal shear factor that skews the element. This creates a parallelogram effect by shifting the top edge horizontally relative to the bottom. Positive values skew right, negative values skew left. Typical values range from -1 to 1. A value of 0.5 shifts the top edge right by half the elem…
  • shearY (NUMBER, Optional): The vertical shear factor that skews the element. This creates a parallelogram effect by shifting the right edge vertically relative to the left. Positive values skew down, negative values skew up. Typical values range from -1 to 1. A value of 0.5 shifts the right edge down by half the element’s …
  • unit (SELECT, Optional): The unit of measurement for position values (translateX and translateY). PT (Points) is recommended - there are 72 points per inch, and a standard slide is 720x405 points. EMU (English Metric Units) provides more precision with 914400 EMU per inch, useful for exact positioning. The scale and shea…
Output: Returns the operation result

Add image

google_slides.add_image
Insert images from URLs into slides. Requires Confirmation: Yes Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation where you want to add the image. This is the alphanumeric string found in the presentation URL between ‘/d/’ and ‘/edit’. For example, in ‘https://docs.google.com/presentation/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit’, the ID is ’…
  • slideId (TEXT, Required): The unique identifier of the specific slide where the image will be added. This is NOT the slide number but the slide’s object ID. You can obtain slide IDs by first using the ‘Get Presentation Content’ action with JSON output format, which lists all slides with their IDs. Slide IDs typically look…
  • imageUrl (TEXT, Required): The publicly accessible URL of the image to add. Must be a direct link to an image file (PNG, JPEG, or GIF). The URL must be accessible without authentication - Google Slides will download the image from this URL. Common sources include: images hosted on public CDNs, Google Drive files with publi…
  • width (NUMBER, Optional): The width of the image on the slide in the specified unit (default is Points). This sets the display size, not the actual image resolution. A typical slide is 720 points wide. Common values: 100-200 for small images like logos, 300-400 for medium images, 500-700 for large images spanning most of …
  • height (NUMBER, Optional): The height of the image on the slide in the specified unit (default is Points). This sets the display size, not the actual image resolution. A typical slide is 405 points tall. Common values: 100-200 for small images, 200-300 for medium images, 300-400 for large images. The actual displayed size …
  • positionX (NUMBER, Optional): The horizontal position of the image’s top-left corner from the left edge of the slide in the specified unit. 0 is the left edge. A typical slide is 720 points wide. Common values: 10-50 for left-aligned, 200-400 for center area (remember to account for image width), 500-700 for right-aligned. De…
  • positionY (NUMBER, Optional): The vertical position of the image’s top-left corner from the top edge of the slide in the specified unit. 0 is the top edge. A typical slide is 405 points tall. Common values: 10-50 for top area, 150-250 for middle area (remember to account for image height), 300-400 for bottom area. Default is …
  • scaleX (NUMBER, Optional): Additional horizontal scaling factor applied after setting the width. 1 means no additional scaling (use specified width), 2 means double the width, 0.5 means half the width. This is useful for fine-tuning the image size after initial placement. Most commonly left at 1. Values typically range fro…
  • scaleY (NUMBER, Optional): Additional vertical scaling factor applied after setting the height. 1 means no additional scaling (use specified height), 2 means double the height, 0.5 means half the height. This is useful for fine-tuning the image size after initial placement. Most commonly left at 1. Values typically range f…
  • unit (SELECT, Optional): The unit of measurement for size and position values. PT (Points) is recommended for consistency with other slide elements - there are 72 points per inch, and a standard slide is 720x405 points. EMU (English Metric Units) provides more precision with 914400 EMU per inch, which can be useful for e…
  • maintainAspectRatio (BOOLEAN, Optional): Whether to maintain the image’s original aspect ratio. When true (default), the image will keep its original proportions and may not exactly match both specified width and height - one dimension will be adjusted to prevent distortion. When false, the image will be stretched or compressed to exact…
  • objectId (TEXT, Optional): An optional custom identifier for the image element. If provided, this ID can be used to reference the image in subsequent API calls for updates or transformations. Must be unique within the presentation. If not provided, a unique ID will be automatically generated. Only use this if you need to r…
Output: Returns the operation result

Replace shapes with images

google_slides.replace_shapes_with_images
Replace placeholder shapes with images. Requires Confirmation: Yes Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation where shapes will be replaced with images. This is the alphanumeric string found in the presentation URL between ‘/d/’ and ‘/edit’. You must have edit permissions for this presentation.
  • imageReplacements (OBJECT, Required): An array of replacement configurations. Each item should specify: ‘placeholder’ (the text to search for in shapes, e.g., ‘company-logo’), ‘imageUrl’ (the publicly accessible URL of the replacement image), and optionally ‘replaceMethod’ (how to fit the image), ‘matchCase’ (whether to match case), …
  • replaceMethod (SELECT, Optional): The default method for fitting images into shapes when not specified per replacement. CENTER_INSIDE fits the entire image within the shape bounds while preserving aspect ratio (may leave empty space). CENTER_CROP fills the entire shape by cropping the image if necessary while preserving aspect ra…
Output: Returns the operation result

Edit shape text

google_slides.edit_shape_text
Edit text within shapes and text boxes. Requires Confirmation: Yes Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation. Found in the URL between ‘/d/’ and ‘/edit’.
  • elementId (TEXT, Required): The unique identifier of the shape, text box, or table cell containing the text to edit. You can find element IDs using the ‘Get Presentation Content’ action with JSON output.
  • operation (SELECT, Optional): The type of text editing operation to perform. INSERT adds new text, REPLACE substitutes existing text with new text.
  • text (TEXT, Optional): The text to insert or use as replacement. Required for INSERT and REPLACE operations. For line breaks, use backslash-n (\n) - NOT forward slash (/n). Example: ‘Line 1\nLine 2’.
  • insertionIndex (NUMBER, Optional): For INSERT operation: The position where text will be inserted. 0 inserts at the beginning. Required for INSERT operation.
  • startIndex (NUMBER, Optional): For DELETE or REPLACE with specific range: The starting position of the text range. 0 is the first character.
  • endIndex (NUMBER, Optional): For DELETE or REPLACE with specific range: The ending position of the text range (exclusive). Must be greater than startIndex.
Output: Returns the operation result

Update text style

google_slides.update_text_style
Format text with styles, colors, and fonts. Requires Confirmation: No Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation. This is the alphanumeric string found in the presentation URL between ‘/d/’ and ‘/edit’.
  • objectId (TEXT, Required): The ID of the shape, text box, or table containing the text you want to format. TO GET THIS ID: Option 1) Use ‘Add Shape with Text’ action first - it returns the shape ID in its response. Option 2) Use ‘Get Presentation Content’ action with JSON output to see all element IDs in your presentation…
  • text (MULTI_LINE_TEXT, Optional): The text to insert or replace. If provided with startIndex and endIndex, replaces the specified range. If provided alone, inserts at startIndex or beginning. Leave empty to only format existing text.
  • startIndex (NUMBER, Optional): The zero-based starting index for text operations. For formatting: applies styles from this position. For insertion: inserts text at this position. For replacement: start of range to replace. If not specified, operations apply from the beginning.
  • endIndex (NUMBER, Optional): The zero-based ending index (exclusive) for text operations. For formatting: applies styles up to this position. For replacement: end of range to replace. If not specified with startIndex, operations continue to the end of text.
  • cellLocation (OBJECT, Optional): If formatting text within a table cell, specify the row and column indices (0-based). Required when the objectId refers to a table.
  • bold (BOOLEAN, Optional): Make text bold (true) or remove bold formatting (false). Leave unset to keep existing bold state.
  • italic (BOOLEAN, Optional): Make text italic (true) or remove italic formatting (false). Leave unset to keep existing italic state.
  • underline (BOOLEAN, Optional): Add underline to text (true) or remove underline (false). Leave unset to keep existing underline state.
  • strikethrough (BOOLEAN, Optional): Add strikethrough to text (true) or remove strikethrough (false). Leave unset to keep existing strikethrough state.
  • smallCaps (BOOLEAN, Optional): Display text in small capitals (true) or normal case (false). Small caps renders lowercase letters as smaller versions of capitals.
  • fontSize (NUMBER, Optional): The font size in points. Common sizes: 10pt (small), 12pt (normal), 14pt (medium), 18pt (large), 24pt (heading), 36pt (title). Range typically 6-400pt.
  • fontFamily (TEXT, Optional): The font family name. Can be any font from Google Fonts (e.g., ‘Roboto’, ‘Open Sans’, ‘Lato’) or standard fonts (‘Arial’, ‘Times New Roman’, ‘Georgia’). If unrecognized, defaults to Arial.
  • fontWeight (NUMBER, Optional): The numeric font weight (100-900 in increments of 100). 100=Thin, 300=Light, 400=Regular, 500=Medium, 600=SemiBold, 700=Bold, 900=Black. Only works when fontFamily is also specified. Values ≥700 are considered bold.
  • foregroundColor (OBJECT, Optional): The color of the text as RGB values (0-1 range). Example: {“red”: 0, “green”: 0, “blue”: 1} for blue text.
  • backgroundColor (OBJECT, Optional): The background/highlight color behind the text as RGB values (0-1 range). Example: {“red”: 1, “green”: 1, “blue”: 0} for yellow highlight.
  • link (TEXT, Optional): Add a hyperlink to the text. The text will be underlined and colored as a link. Provide the full URL including https://.
  • baselineOffset (SELECT, Optional): Vertical text position adjustment. Use for superscript, subscript, or normal positioning.
  • alignment (SELECT, Optional): Paragraph alignment within its container. Affects the entire paragraph containing the text.
  • lineSpacing (NUMBER, Optional): Line spacing as a percentage of normal (100 = single spacing, 150 = 1.5x spacing, 200 = double spacing). Range typically 50-300.
  • direction (SELECT, Optional): The reading direction of the text. Important for multilingual content.
  • spacingMode (SELECT, Optional): How paragraph spacing is handled, particularly useful for lists.
  • spaceAbove (NUMBER, Optional): Extra space above the paragraph in points. Useful for creating visual separation between paragraphs.
  • spaceBelow (NUMBER, Optional): Extra space below the paragraph in points. Useful for creating visual separation between paragraphs.
  • indentStart (NUMBER, Optional): Indentation from the left/start margin in points. Positive values indent inward.
  • indentEnd (NUMBER, Optional): Indentation from the right/end margin in points. Positive values indent inward.
  • indentFirstLine (NUMBER, Optional): Additional indentation for the first line of the paragraph in points.
  • createList (BOOLEAN, Optional): Convert the text into a bulleted or numbered list. The list style is determined by the nestingLevel parameter.
  • nestingLevel (NUMBER, Optional): For lists, determines the bullet/number style. 0=bullets, 1=arrows, 2=checkboxes, 3=numbers, 4=numbers with parentheses, 5=hierarchical numbers.
Output: Returns the operation result

Update paragraph style

google_slides.update_paragraph_style
Format paragraphs with alignment, spacing, and bullets. Requires Confirmation: Yes Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation.
  • elementId (TEXT, Required): The unique identifier of the shape or text box containing the paragraphs to format.
  • rangeType (SELECT, Optional): Specifies which paragraphs to format. ALL formats all paragraphs, FIXED_RANGE formats paragraphs within specific text indices, FROM_START formats from a start index to the end.
  • startIndex (NUMBER, Optional): For FIXED_RANGE or FROM_START: The text index where paragraph formatting starts.
  • endIndex (NUMBER, Optional): For FIXED_RANGE: The text index where paragraph formatting ends (exclusive).
  • bulletPreset (SELECT, Optional): Apply a predefined bullet style to paragraphs. This creates a bulleted list with the specified bullet pattern.
  • alignment (SELECT, Optional): Set the horizontal alignment of paragraphs.
  • lineSpacing (NUMBER, Optional): Line spacing as a percentage. 100 is single spacing, 150 is 1.5x spacing, 200 is double spacing.
  • indentStart (NUMBER, Optional): Indentation from the left/start margin in points.
  • indentEnd (NUMBER, Optional): Indentation from the right/end margin in points.
  • indentFirstLine (NUMBER, Optional): Additional indentation for the first line of each paragraph in points.
  • spaceAbove (NUMBER, Optional): Space above the paragraph in points.
  • spaceBelow (NUMBER, Optional): Space below the paragraph in points.
  • spacingMode (SELECT, Optional): How paragraph spacing is handled. NEVER_COLLAPSE maintains spacing, COLLAPSE_LISTS reduces spacing in lists.
  • direction (SELECT, Optional): The text direction for the paragraph.
Output: Returns the operation result

Update shape properties

google_slides.update_shape_properties
Customize shape appearance with colors, borders, and alignment. Requires Confirmation: No Parameters:
  • presentationId (TEXT, Required): The unique identifier of the Google Slides presentation.
  • objectId (TEXT, Required): The ID of the shape to style. Get this from ‘Add Shape with Text’ response or ‘Get Presentation Content’.
  • backgroundColor (OBJECT, Optional): Fill color for the shape background. RGB values from 0-1.
  • backgroundTransparency (NUMBER, Optional): Transparency level for background (0 = opaque, 1 = fully transparent).
  • outlineColor (OBJECT, Optional): Color of the shape border/outline. RGB values from 0-1.
  • outlineWeight (NUMBER, Optional): Width of the shape border in points (0.5-12 typical).
  • outlineDashStyle (SELECT, Optional): Style of the border line.
  • outlineTransparency (NUMBER, Optional): Transparency of the border (0 = opaque, 1 = fully transparent).
  • contentAlignment (SELECT, Optional): How content is aligned within the shape.
Output: Returns the operation result