Skip to main content

Documentation Index

Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt

Use this file to discover all available pages before exploring further.

Overview

OneCLI connects AI agents to Google Docs through Google’s OAuth flow. Agents can read document content, create new documents, and edit existing ones. The gateway injects OAuth credentials into requests to the Google Docs API automatically. This is useful for agents that generate reports, draft documentation, or need to read information stored in Google Docs.

Setup

1

Go to Connections

Open the OneCLI dashboard and navigate to Connections > Google Docs.
2

Authorize

Click Connect Google Docs. You’ll be redirected to Google to authorize OneCLI. Review the permissions and click Allow.

What agents can do

  • Read the full text content of a document
  • Get document structure (headings, paragraphs, tables, lists)
  • Create new documents with formatted content
  • Insert, replace, or delete text in existing documents
  • Add and modify tables, headers, and footers
  • Apply text formatting (bold, italic, font size, color)
  • Insert images and links into documents
  • Read and add comments on a document

Controlling access with rules

Use OneCLI’s rules engine to limit what agents can do with your documents. For example, you can allow read-only access so agents can extract information but not modify documents, or restrict access to specific document IDs. Rules are evaluated before credential injection, so a blocked request never reaches Google Docs.