Access Google Docs via the Google Docs API with managed OAuth authentication. Search, read, create, and update documents stored in Google Drive.
This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Google Docs API access yourself.
Step 1: InstallStep 2: Pair AccountStep 3: Connect Google Docs
_App-specific connection GIF coming soon_Run the install command in OpenClawSign in and approve the deviceOpen the dashboard and connect Google Docs
text
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ Google Docs │
│ (User Chat) │ │ (OAuth) │ │ (Docs API) │
└─────────────────┘ └──────────────┘ └──────────────────┘
│ │ │
│ 1. Install Plugin │ │
│ 2. Pair Device │ │
│ 3. Connect Docs │ │
│ │ 4. Secure Token │
│ │ 5. Proxy Requests │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ SKILL │ │ Dashboard│ │ Google │
│ File │ │ Auth │ │ Drive │
└──────────┘ └──────────┘ └──────────┘
Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.
bash
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Google Docs again."
bash
# Search for documents
clawlink_call_tool --tool "googledocs_search_documents" --params '{"query": "report"}'
# Get document plaintext
clawlink_call_tool --tool "googledocs_get_document_plaintext" --params '{"document_id": "YOUR_DOCUMENT_ID"}'
# Create a new document
clawlink_call_tool --tool "googledocs_create_document" --params '{"title": "New Document"}'
All Google Docs tool calls are authenticated automatically by ClawLink using the user's connected Google account.
No API key is required in chat. ClawLink stores the OAuth token securely and injects it into every Google Docs API request on the user's behalf.
clawlink_begin_pairing if it is not configured yet.clawlink_list_integrations to verify the connection is active.bash
clawlink_list_integrations
Response: Returns all connected integrations. Look for google-docs in the list.
bash
clawlink_list_tools --integration google-docs
Response: Returns the live tool catalog for Google Docs.
If Google Docs tools are missing or the connection shows an error:
clawlink_list_integrations to verifyclawlink_list_tools --integration google-docsToolDescriptionModegoogledocs_search_documentsSearch for Google Docs by name, content, or date rangeReadgoogledocs_get_document_by_idRetrieve a document's full metadataReadgoogledocs_get_document_plaintextGet a best-effort plain-text rendering of a documentReadgoogledocs_export_document_as_pdfExport a document as PDF (10MB limit)Readgoogledocs_list_spreadsheet_chartsList charts from a linked Google Sheets spreadsheetRead
ToolDescriptionModegoogledocs_create_documentCreate a new empty document with a titleWritegoogledocs_create_document_markdownCreate a document initialized with Markdown contentWrite
ToolDescriptionModegoogledocs_insert_text_actionInsert text at a specific index or append to endWritegoogledocs_replace_all_textReplace all occurrences of a string throughout a documentWritegoogledocs_update_document_markdownReplace entire document content with MarkdownWritegoogledocs_update_document_section_markdownInsert or replace a section of a document with MarkdownWritegoogledocs_update_existing_documentApply programmatic edits via batchUpdate APIWritegoogledocs_update_document_styleUpdate page size, margins, and default text directionWrite
ToolDescriptionModegoogledocs_insert_table_actionInsert a table at a specific locationWritegoogledocs_insert_table_columnInsert a new column into an existing tableWritegoogledocs_insert_page_breakInsert a page break into a documentWritegoogledocs_insert_inline_imageInsert an image from a URI at a specific locationWritegoogledocs_create_paragraph_bulletsAdd bullet formatting to paragraphs in a rangeWritegoogledocs_delete_paragraph_bulletsRemove bullet formatting from paragraphsWrite
ToolDescriptionModegoogledocs_create_headerCreate a new header with optional textWritegoogledocs_create_footerCreate a new footer with optional textWritegoogledocs_create_footnoteAdd a footnote at a location or end of documentWritegoogledocs_create_named_rangeAssign a name to a specific part of a documentWritegoogledocs_delete_headerDelete a header from a documentWritegoogledocs_delete_footerDelete a footer from a documentWrite
ToolDescriptionModegoogledocs_delete_table_rowDelete a row from a tableWritegoogledocs_delete_table_columnDelete a column from a tableWritegoogledocs_unmerge_table_cellsUnmerge previously merged cells in a tableWritegoogledocs_update_table_row_styleUpdate row style (height, header marking)Write
ToolDescriptionModegoogledocs_copy_documentCreate a copy of an existing documentWrite
ToolDescriptionModegoogledocs_delete_content_rangeDelete a range of content from a documentWritegoogledocs_delete_named_rangeDelete a named range from a documentWrite
ToolDescriptionModegoogledocs_replace_imageReplace an existing image with a new one from a URIWrite
bash
clawlink_call_tool --tool "googledocs_search_documents" \
--params '{
"query": "meeting notes",
"page_size": 10
}'
bash
clawlink_call_tool --tool "googledocs_get_document_plaintext" \
--params '{
"document_id": "YOUR_DOCUMENT_ID"
}'
bash
clawlink_call_tool --tool "googledocs_create_document_markdown" \
--params '{
"title": "Project Brief",
"markdown": "# Project Brief\n\n## Overview\n\nThis is the project overview section.\n\n## Next Steps\n\n1. Define requirements\n2. Create mockups\n3. Implement feature"
}'
bash
clawlink_call_tool --tool "googledocs_insert_text_action" \
--params '{
"document_id": "YOUR_DOCUMENT_ID",
"text": "New paragraph content here.",
"insertion_index": 150
}'
bash
clawlink_call_tool --tool "googledocs_replace_all_text" \
--params '{
"document_id": "YOUR_DOCUMENT_ID",
"replace_text": "New Company Name",
"search_text": "Old Company Name"
}'
bash
clawlink_call_tool --tool "googledocs_copy_document" \
--params '{
"document_id": "YOUR_DOCUMENT_ID"
}'
clawlink_list_integrations to confirm Google Docs is connected.clawlink_list_tools --integration google-docs to see the live catalog.clawlink_search_tools with a short query and integration google-docs.text
┌─────────────────────────────────────────────────────────────┐
│ READ OPERATIONS (Safe) │
│ search → get → export → call │
│ │
│ Example: Search docs → Get plaintext → Show results │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WRITE OPERATIONS (Require Confirmation) │
│ describe → preview → confirm → call │
│ │
│ Example: Describe tool → Preview changes → User approves │
│ → Execute update │
└─────────────────────────────────────────────────────────────┘
clawlink_describe_tool first.whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.clawlink_preview_tool first.clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.googledocs_insert_text_action: Use append_to_end=true to safely append without index concerns. When using insertion_index, it must fall within an existing paragraph's bounds.Status / ErrorMeaningTool not foundThe tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration google-docs.Missing connectionGoogle Docs is not connected. Direct the user to https://claw-link.dev/dashboard?add=google-docs.RESOURCE_NOT_FOUNDDocument does not exist. Check the document_id.INVALID_ARGUMENTInvalid parameter or missing required field. Review the tool schema with clawlink_describe_tool.FORBIDDENNo read or write access to the document. Check sharing permissions.Write rejectedUser did not confirm a write action. Always confirm before executing writes.
Check that the ClawLink plugin is installed: bash
openclaw plugins list
If the plugin is installed but tools are missing, tell the user to send /new as a standalone message to reload the catalog.
If a fresh chat does not help, run: bash
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
After restart, tell the user to send /new again and retry.
google-docs.clawlink_describe_tool to verify parameter names and types before calling.clawlink_preview_tool first.Powered by ClawLink — an integration hub for OpenClaw
