Caplets Catalog
official
spiritledsoftware/caplets

Google Docs

Read, create, and edit Google Docs documents through the Google Docs API Discovery document.

Install
caplets install spiritledsoftware/caplets google-docs

Inspect before installing

  • Can change external servicesThis Caplet may perform mutating operations against an external service.
  • Authentication requiredThis Caplet needs credentials or an auth flow before use.
CAPLET.md

Frontmatter

FieldValue
nameGoogle Docs
descriptionRead, create, and edit Google Docs documents through the Google Docs API Discovery document.
avoidWhenUse Google Drive for file search, folder placement, sharing, copying, moving, trashing, or deleting documents.
tagsgoogle, docs, documents, productivity
catalog.iconhttps://www.gstatic.com/images/branding/product/2x/docs_2020q4_48dp.png
googleDiscoveryApi.discoveryUrlhttps://docs.googleapis.com/$discovery/rest?version=v1
googleDiscoveryApi.includeOperationsdocs.documents.get, docs.documents.create, docs.documents.batchUpdate
googleDiscoveryApi.auth.typeoauth2
googleDiscoveryApi.auth.issuerhttps://accounts.google.com
googleDiscoveryApi.auth.clientId$vault:GOOGLE_CLIENT_ID
googleDiscoveryApi.auth.clientSecret$vault:GOOGLE_CLIENT_SECRET
googleDiscoveryApi.auth.scopeshttps://www.googleapis.com/auth/documents

Google Docs

Document prerequisites

Start with a document ID, document URL, or the newly created document returned by documents.create. Inspect current structure with documents.get before planning content or formatting changes. Confirm the target document ID and intended changes before creating or updating a document.

Safe updates

  • Google Docs content can contain private, shared, or regulated information. Read only the sections needed for the operator's task.
  • documents.batchUpdate changes live content and formatting. Group a deliberate set of content and formatting requests into one batch where practical rather than making exploratory writes.