Googledocs

Learn how to use Googledocs with Composio

Overview

SLUG

GOOGLEDOCS

Description

Google Docs is a cloud-based word processor with real-time collaboration, version history, and integration with other Google Workspace apps

Authentication Details

client_id
stringRequired
client_secret
stringRequired
oauth_redirect_uri
stringDefaults to https://backend.composio.dev/api/v1/auth-apps/add
scopes
stringDefaults to https://www.googleapis.com/auth/documents,https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/userinfo.email
bearer_token
string
token
stringRequired

Tools

SLUG: GOOGLEDOCS_COPY_DOCUMENT

Tool to create a copy of an existing google document. use this to duplicate a document, for example, when using an existing document as a template. the copied document will have a default title (e.g., 'copy of [original title]') if no new title is provided, and will be placed in the user's root google drive folder.

Action Parameters

document_id
stringRequired
title
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_CREATE_FOOTNOTE

Tool to create a new footnote in a google document. use this when you need to add a footnote at a specific location or at the end of the document body.

Action Parameters

documentId
stringRequired
endOfSegmentLocation
object
location
object

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_CREATE_HEADER

Tool to create a new header in a google document. use this tool when you need to add a header to a document, optionally specifying the section it applies to.

Action Parameters

createHeader
objectRequired
documentId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_CREATE_NAMED_RANGE

Tool to create a new named range in a google document. use this to assign a name to a specific part of the document for easier reference or programmatic manipulation.

Action Parameters

documentId
stringRequired
name
stringRequired
rangeEndIndex
integerRequired
rangeSegmentId
string
rangeStartIndex
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_CREATE_PARAGRAPH_BULLETS

Tool to add bullets to paragraphs within a specified range in a google document. use when you need to format a list or a set of paragraphs as bullet points.

Action Parameters

createParagraphBullets
objectRequired
document_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_DELETE_CONTENT_RANGE

Tool to delete a range of content from a google document. use when you need to remove a specific portion of text or other structural elements within a document.

Action Parameters

document_id
stringRequired
range
objectRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_DELETE_HEADER

Deletes the header from the specified section or the default header if no section is specified. use this tool to remove a header from a google document.

Action Parameters

document_id
stringRequired
header_id
stringRequired
tab_id
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_DELETE_NAMED_RANGE

Tool to delete a named range from a google document. use when you need to remove a previously defined named range by its id or name.

Action Parameters

deleteNamedRange
objectRequired
document_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_DELETE_PARAGRAPH_BULLETS

Tool to remove bullets from paragraphs within a specified range in a google document. use when you need to clear bullet formatting from a section of a document.

Action Parameters

document_id
stringRequired
range
objectRequired
tab_id
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_DELETE_TABLE

Tool to delete an entire table from a google document. use when you have the document id and the specific start and end index of the table element to be removed. the table's range can be found by inspecting the document's content structure.

Action Parameters

document_id
stringRequired
segment_id
string
tab_id
string
table_end_index
integerRequired
table_start_index
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_DELETE_TABLE_COLUMN

Tool to delete a column from a table in a google document. use this tool when you need to remove a specific column from an existing table within a document.

Action Parameters

document_id
stringRequired
requests
arrayRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_DELETE_TABLE_ROW

Tool to delete a row from a table in a google document. use when you need to remove a specific row from an existing table.

Action Parameters

documentId
stringRequired
tableCellLocation
objectRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_GET_CHARTS_FROM_SPREADSHEET

Tool to retrieve a list of all charts from a specified google sheets spreadsheet. use when you need to get chart ids and their specifications for embedding or referencing elsewhere, such as in google docs.

Action Parameters

spreadsheet_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_INSERT_INLINE_IMAGE

Tool to insert an image from a given uri at a specified location in a google document as an inline image. use when you need to add an image to a document programmatically.

Action Parameters

documentId
stringRequired
location
objectRequired
objectSize
object
uri
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_INSERT_PAGE_BREAK

Tool to insert a page break into a google document. use when you need to start new content on a fresh page, such as at the end of a chapter or section.

Action Parameters

documentId
stringRequired
insertPageBreak
objectRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_INSERT_TABLE_ACTION

Tool to insert a table into a google document. use when you need to add a new table at a specific location or at the end of a segment (like document body, header, or footer) in a document.

Action Parameters

columns
integerRequired
documentId
stringRequired
index
integer
insertAtEndOfSegment
boolean
rows
integerRequired
segmentId
string
tabId
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_INSERT_TABLE_COLUMN

Tool to insert a new column into a table in a google document. use this tool when you need to add a column to an existing table at a specific location.

Action Parameters

document_id
stringRequired
requests
arrayRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDOCS_INSERT_TEXT_ACTION

Tool to insert a string of text at a specified location within a google document. use when you need to add new text content to an existing document.

Action Parameters

document_id
stringRequired
insertion_index
integerRequired
text_to_insert
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired