Skip to main content
Every googledocs.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Documents

copyDocument

documents.copyDocument Copy an existing Google Doc Risk: write
Input Output

createBlankDocument

documents.createBlankDocument Create a blank Google Doc [DEPRECATED: prefer documents.createDocument] Risk: write
Input Output

createDocument

documents.createDocument Create a Google Doc with an optional title and initial text Risk: write
Input Output

createDocumentMarkdown

documents.createDocumentMarkdown Create a Google Doc initialized from Markdown text Risk: write
Input Output

exportDocumentAsPdf

documents.exportDocumentAsPdf Export a Google Doc as PDF (Drive enforces a 10MB limit) Risk: read
Input Output

getDocument

documents.getDocument Retrieve a Google Doc by id Risk: read
Input Output

getDocumentPlaintext

documents.getDocumentPlaintext Retrieve a Google Doc as best-effort plain text Risk: read
Input Output

listSpreadsheetCharts

documents.listSpreadsheetCharts List charts in a Google Sheets spreadsheet for embedding Risk: read
Input Output

searchDocuments

documents.searchDocuments Search Google Docs by name, content, or date filters Risk: read
Input Output

updateDocumentBatch

documents.updateDocumentBatch Apply batchUpdate edits [DEPRECATED: prefer documents.updateExistingDocument] Risk: write
Input
Output

updateDocumentMarkdown

documents.updateDocumentMarkdown Replace a Google Doc content with Markdown text Risk: write
Input Output

updateDocumentSectionMarkdown

documents.updateDocumentSectionMarkdown Replace a section of a Google Doc with Markdown text Risk: write
Input Output

updateDocumentStyle

documents.updateDocumentStyle Update the page size, margins, and global document style Risk: write
Input
Output

updateExistingDocument

documents.updateExistingDocument Apply batchUpdate edits (insert/delete/format) to a Google Doc Risk: write
Input
Output

Structure

createFooter

structure.createFooter Create a footer Risk: write
Input
Output

createFootnote

structure.createFootnote Create a footnote Risk: write
Input
Output

createHeader

structure.createHeader Create a header Risk: write
Input
Output

createNamedRange

structure.createNamedRange Create a named range Risk: write
Input Output

createParagraphBullets

structure.createParagraphBullets Add bullets to a range of paragraphs Risk: write
Input Output

deleteFooter

structure.deleteFooter Delete a footer Risk: destructive
Input Output

deleteHeader

structure.deleteHeader Delete a header Risk: destructive
Input Output

deleteNamedRange

structure.deleteNamedRange Delete a named range by id or name Risk: destructive
Input Output

deleteParagraphBullets

structure.deleteParagraphBullets Remove bullets from a range of paragraphs Risk: write
Input Output

Tables

deleteTableColumn

tables.deleteTableColumn Delete a column from a table Risk: destructive
Input
Output

deleteTableRow

tables.deleteTableRow Delete a row from a table Risk: destructive
Input
Output

insertTable

tables.insertTable Insert a table into a Google Doc Risk: write
Input Output

insertTableColumn

tables.insertTableColumn Insert a column into a table Risk: write
Input
Output

unmergeTableCells

tables.unmergeTableCells Unmerge previously merged table cells Risk: write
Input
Output

updateTableRowStyle

tables.updateTableRowStyle Update the style of table rows Risk: write
Input
Output

Text

deleteContentRange

text.deleteContentRange Delete a content range from a Google Doc Risk: destructive
Input Output

insertInlineImage

text.insertInlineImage Insert an inline image from a URI into a Google Doc Risk: write
Input
Output

insertPageBreak

text.insertPageBreak Start a new page at a location in a Google Doc Risk: write
Input Output

insertText

text.insertText Insert text at a location or append to the end of a Google Doc Risk: write
Input Output

replaceAllText

text.replaceAllText Replace all occurrences of a string in a Google Doc Risk: write
Input Output

replaceImage

text.replaceImage Replace an existing image in a Google Doc Risk: write
Input Output