Google Apps Script module
Functions scoped to specific Google Apps Script services: Sheets, Slides, Admin SDK, Drive, Docs, Forms, network requests, and the built-in UI classes.
A New marker indicates a function added in the latest release; a Deprecated marker indicates a function scheduled for removal in a future release.
Google Base Methods
General-purpose helpers used across the Google Apps Script modules below.
Function | Return type | Brief description |
|---|---|---|
| Calculates the size of a string in bytes (UTF-8). | |
|
| Retrieves a project trigger by its unique id, or |
Google Admin SDK Directory Methods
Helpers for the Admin SDK Directory Service.
Function | Return type | Brief description |
|---|---|---|
| Checks if the current user is an administrator of the Google Workspace domain. | |
|
| Checks if the current user is not an administrator of the Google Workspace domain. |
|
| Ensures the current user is a domain administrator, throwing otherwise. |
Google Drive Methods
Helpers for Google Drive.
Function | Return type | Brief description |
|---|---|---|
|
| Creates a nested folder tree from a path, reusing the folders that already exist. |
Google Docs Methods
Helpers for Google Docs. Not implemented yet. Contributions are welcome — see Contributing.
Google Forms Methods
Helpers for Google Forms. Not implemented yet. Contributions are welcome — see Contributing.
Google Sheets Methods
Helpers for reading, writing, and validating Google Sheets data: row and column manipulation, A1-notation parsing, GridRange comparisons, and type guards for Sheet, Spreadsheet, and Range objects.
Function | Return type | Brief description |
|---|---|---|
Appends one column after the last column that holds data, on a sheet or inside a range. | ||
Appends columns after the last column that holds data, on a sheet or inside a range. | ||
Appends one row after the last row that holds data, on a sheet or inside a range. | ||
Appends rows after the last row that holds data, on a sheet or inside a range. | ||
| Clears the columns a predicate selects, on a sheet or inside a range. | |
| Clears the rows a predicate selects, on a sheet or inside a range. | |
| Converts a | |
| Removes the columns a predicate selects, on a sheet or inside a range. | |
| Removes the rows a predicate selects, on a sheet or inside a range. | |
| Checks if two | |
| Extracts the range part (e.g., | |
| Extracts the sheet name part from an A1 notation string. | |
| Converts a column letter (e.g., | |
| Converts a 0-based column index to its letter representation (e.g., | |
| Converts a 1-based column position to its letter representation. | |
| Converts a column letter to a 1-based column position. | |
| Looks up a named range by its exact name, or | |
|
| Returns a sheet's stored schema, or one inferred from its contents, marked as inferred. |
| Retrieves a | |
| Retrieves a | |
|
| Reads a sheet or a range as rows, optionally keyed by a header row, filtered and paged. |
| Applies syntax highlighting to an HTML string. | |
|
| Applies a declarative schema to a sheet and records it as developer metadata. |
| Validates if a | |
| Determines if one | |
| Checks if two | |
| Validates if a value is a Google Apps Script | |
| Validates if a value is a Google Apps Script | |
| Validates if a value is a Google Apps Script | |
| Validates if a value is a Google Apps Script | |
| Validates if a value is a Google Apps Script | |
| Validates the format of a sheet ID. | |
| Validates if a string is a valid Google Sheets name. | |
| Validates the format of a Google Spreadsheet ID. | |
|
| Checks if a grid range does not denote exactly one cell. |
| Checks if one grid range is not contained within another. | |
| Checks if two grid ranges do not have the same dimensions. | |
| Checks if a value is NOT a Google Apps Script | |
|
| Checks if a value is not a |
| Checks if a value is NOT a Google Apps Script | |
|
| Checks if a value is not a |
|
| Checks if a value is not a |
|
| Checks if a value is not a valid sheet identifier. |
| Checks if a value is not a valid sheet name. | |
| Checks if a value is not a valid spreadsheet identifier. | |
| Parses an A1 notation string into a structured | |
| Parses a list of comma-separated A1 notations into an array of | |
|
| Inserts one column before the data, at the start of a sheet or before a range, optionally filling it. |
|
| Inserts columns before the data, at the start of a sheet or before a range, optionally filling them. |
Inserts one row before the data, at the top of a sheet or above a range. | ||
Inserts rows before the data, at the top of a sheet or above a range. | ||
|
| Takes a schema off a sheet, and optionally the validation rules it applied, leaving values untouched. |
| Ensures a grid range denotes exactly one cell, throwing otherwise. | |
| Ensures one grid range lies within another, throwing otherwise. | |
| Ensures two grid ranges have the same dimensions, throwing otherwise. | |
Ensures a value is a | ||
| Ensures a value is a | |
Ensures a value is a | ||
Ensures a value is a | ||
|
| Ensures a value is a |
| Ensures a value is a valid sheet identifier, throwing otherwise. | |
| Ensures a value is a valid sheet name, throwing otherwise. | |
| Ensures a value is a valid spreadsheet identifier, throwing otherwise. | |
| Alphabetically sorts all sheets within a spreadsheet. | |
| Converts a | |
|
| Rewrites the formulas of a sheet or of one range, returning how many changed. |
| Updates or sets the sheet name within an A1 notation string while preserving the range. |
Google Slides Methods
Helpers for Google Slides: slide lookup and indexing, conversion between Markdown and RichTextRun, find-and-replace, and type guards for Presentation and Slide objects.
Function | Return type | Brief description |
|---|---|---|
| Converts Markdown-formatted text to an array of | |
| Converts an array of | |
| Finds and replaces all occurrences of text within a slide. | |
|
| Retrieves a slide by its zero-based index, in a given presentation or in the active one. |
|
| Retrieves the zero-based index of a slide, in a given presentation or in the active one. |
|
| Validates if a value is a Google Apps Script |
|
| Validates if a value is a Google Apps Script |
| Validates if a string is a valid Google Slides presentation ID. | |
|
| Validates if a string is a valid Google Slides slide ID. |
|
| Checks if a value is not a |
|
| Checks if a value is not a |
| Checks if a value is not a valid presentation identifier. | |
|
| Checks if a value is not a valid slide identifier. |
| Ensures a value is a | |
| Ensures a value is a | |
| Ensures a value is a valid presentation identifier, throwing otherwise. | |
| Ensures a value is a valid slide identifier, throwing otherwise. |
Network Methods
Helpers for network-related operations, such as validating request tokens.
Function | Return type | Brief description |
|---|---|---|
| Ensures that a valid token is provided and matches the allowed keys. |
Google UI Methods
Helpers for user-facing output — Ui, HtmlOutput, and TextOutput type guards — plus dependency guards for repositories and services used in web apps.
Function | Return type | Brief description |
|---|---|---|
| Detects if the user is logged into multiple Google accounts simultaneously. | |
| Validates if a value is a Google Apps Script | |
| Validates if a value is a Google Apps Script | |
| Validates if a value is a Google Apps Script | |
|
| Checks if a value is not an |
|
| Checks if a value is not a |
|
| Checks if a value is not a |
| Ensures a value is an | |
| Ensures that a repository is defined. | |
|
| Ensures that a service is defined. |
| Ensures a value is a | |
|
| Ensures a value is a |
This documentation was generated with AI (Claude) from the library's source code.