Read documents and tab content, create documents and apply ordered batch edits with revision preconditions through the official Google Docs API. Each command makes one explicit request. Select read commands for document read access; enabling writes requires new consent. Batch edits can change existing shared documents. Drive file selection, export and permission management are separate integrations.
What you can do (3)
What you can do
Available commands: 3 (1 read, 2 write). Enable only the commands your application needs.
| Command | Effect |
|---|---|
Applies one or more updates to the document — google-docs.docs.documents.batchupdate |
Write |
Creates a blank document using the title given in the request — google-docs.docs.documents.create |
Write |
Gets the latest version of the specified document. — google-docs.docs.documents.get |
Read |
Connect and use
Open the integration's connection form to check the available credential source. The source has not been resolved for this documentation export. The instructions below apply when using your own provider account.
Get your provider credentials
Follow these steps for Google Docs, then enter the issued values in the connection form below.
- Create or reuse a Google Cloud project, enable the Google Docs API and configure its OAuth consent screen and web client. Register the exact callback shown by Tooluse.net. Enter the Google OAuth client ID and secret in this connection and authorize; no client secret belongs in an AI client. Reading requests documents.readonly; selecting editing commands requires fresh documents consent. A short-lived Google access token can be entered instead for manual testing. Use a document ID, respect revision preconditions and keep batch edits explicit. Create a separate scoped Tooluse.net API key for Claude Code, Codex or Cursor. Public OAuth distribution still requires Google’s applicable verification.
Where to enter credentials
In the integration page, sign in, choose your workspace and open Connect. If a Credentials choice is shown, select Use my credentials. Fill the following connection fields and save. Provider credentials belong in this form, never in an MCP configuration or tool input.
| Connection field | Requirement |
|---|---|
| Google access token (optional with OAuth) | Optional |
| Google OAuth client ID | Optional |
| Google OAuth client secret | Optional |
| Registered OAuth redirect URI (optional) | Optional |
| Return URL after authorization | Optional |
Open API keys and create a Tooluse.net key for the enabled commands.
Set TOOLUSE_API_KEY in your client and use the shared MCP configuration.
Configure Claude Code, Codex or Cursor once
Permissions and results
If you have more than one workspace, check the selected workspace in the connection or API-key dialog before saving. Roles, enabled commands, expiry and revocation use Tooluse.net's existing permissions. Disabling a connection or revoking a key immediately prevents new calls.
Send one Claude tool_use block per request. Keep the same Idempotency-Key when retrying the same request; use a new key for a new call. The response includes the shared Tooluse.net receipt and Claude tool_result. Check both HTTP status and the returned tool result before treating a call as successful.
Your connection's daily allowance and key permissions also apply. Adding a connection does not make a provider request.
Calls return the shared execution receipt and a Claude tool_result. Provider output varies by operation; consult the provider documentation for its response fields. Unconfirmed calls should be checked before retrying.
Call from your client
Use the shared MCP configuration. Refresh your client's tool list after saving the connection or changing key permissions, then call the returned tool name with the example input below.
Configure Claude Code, Codex or Cursor once
Discover your enabled tools
List permitted tools in Claude format. Read every page using page and size (maximum 100) until all results have been received. Use the returned name, not a catalog capability identifier, in the tool_use block.
curl 'https://api.tooluse.net/v1/tools' \
-H "Authorization: Bearer $TOOLUSE_API_KEY"
Find this command in the tool list permitted by your key. Replace svc_FROM_YOUR_TOOL_LIST with its returned name. Use a new Idempotency-Key for each new call and retain it when retrying that same call.
HTTP call
curl 'https://api.tooluse.net/v1/tool-calls' \
-H "Authorization: Bearer $TOOLUSE_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: replace-with-a-new-call-id' \
--data '{
"type": "tool_use",
"id": "toolu_example",
"name": "svc_FROM_YOUR_TOOL_LIST",
"input": {
"path": {
"documentId": "example"
}
}
}'
Send one Claude tool_use block per request. Keep the same Idempotency-Key when retrying the same request; use a new key for a new call. The response includes the shared Tooluse.net receipt and Claude tool_result. Check both HTTP status and the returned tool result before treating a call as successful.
Commands
Applies one or more updates to the document — google-docs.docs.documents.batchupdate
Run Applies one or more updates to the document with Google Docs. This command can change provider data. Review the target and input before invoking it.
This operation can change provider data. Review the input before allowing an agent to call it.
Parameters
Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.
| Parameter | Type | Required in parent | Description | Constraints |
|---|---|---|---|---|
query |
object | Optional | additionalProperties: false |
|
query.$.xgafv |
string | Optional | V1 error format. | enum: ["1","2"] |
query.fields |
string | Optional | Selector specifying which fields to include in a partial response. | |
query.prettyPrint |
boolean | Optional | Returns response with indentations and line breaks. | default: true |
path |
object | Required | additionalProperties: false |
|
path.documentId |
string | Required | The ID of the document to update. | |
body |
— | Required | $ref: "#/definitions/BatchUpdateDocumentRequest" |
Full JSON Schema
Example input
{
"path": {
"documentId": "example"
},
"body": {}
}
At most 1 provider requests per invocation; timeout: 30 seconds.
Creates a blank document using the title given in the request — google-docs.docs.documents.create
Run Creates a blank document using the title given in the request with Google Docs. This command can change provider data. Review the target and input before invoking it.
This operation can change provider data. Review the input before allowing an agent to call it.
Parameters
Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.
| Parameter | Type | Required in parent | Description | Constraints |
|---|---|---|---|---|
query |
object | Optional | additionalProperties: false |
|
query.$.xgafv |
string | Optional | V1 error format. | enum: ["1","2"] |
query.fields |
string | Optional | Selector specifying which fields to include in a partial response. | |
query.prettyPrint |
boolean | Optional | Returns response with indentations and line breaks. | default: true |
body |
— | Required | $ref: "#/definitions/Document" |
Full JSON Schema
Example input
{
"body": {}
}
At most 1 provider requests per invocation; timeout: 30 seconds.
Gets the latest version of the specified document. — google-docs.docs.documents.get
Run Gets the latest version of the specified document. with Google Docs. This is a read command; it does not grant access beyond the connected account's permissions.
This is a read operation. Provider rate limits and data access rules still apply.
Parameters
Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.
| Parameter | Type | Required in parent | Description | Constraints |
|---|---|---|---|---|
query |
object | Optional | additionalProperties: false |
|
query.$.xgafv |
string | Optional | V1 error format. | enum: ["1","2"] |
query.fields |
string | Optional | Selector specifying which fields to include in a partial response. | |
query.prettyPrint |
boolean | Optional | Returns response with indentations and line breaks. | default: true |
query.commentsViewMode |
string | Optional | The comments view mode to apply to the document. This allows viewing the document with comments omitted or included. If one is not specified, COMMENTS_VIEW_MODE_OMITTED is used. If you set comments_view_mode to any value, you must also set include_tabs_content to true or use a field mask that references the Document.tabs field (or any subfield). If you set comments_view_mode to COMMENTS_VIEW_MODE_INCLUDED, you must also explicitly set suggestions_view_mode to SUGGESTIONS_INLINE. If you set comments_view_mode to COMMENTS_VIEW_MODE_INCLUDED or COMMENTS_VIEW_MODE_DEFAULT_FOR_CURRENT_ACCESS, you may not set suggestions_view_mode to PREVIEW_WITHOUT_SUGGESTIONS or PREVIEW_SUGGESTIONS_ACCEPTED. |
enum: ["COMMENTS_VIEW_MODE_UNSPECIFIED","COMMENTS_VIEW_MODE_DEFAULT_FOR_CURRENT_ACCESS","COMMENTS_VIEW_MODE_OMITTED","COMMENTS_VIEW_MODE_INCLUDED"] |
query.includeTabsContent |
boolean | Optional | Whether to populate the Document.tabs field instead of the text content fields like body and documentStyle on Document. - When true: Document content populates in the Document.tabs field instead of the text content fields in Document. - When false: The content of the document's first tab populates the content fields in Document excluding Document.tabs. If a document has only one tab, then that tab is used to populate the document content. Document.tabs will be empty. If you use a field mask that references the Document.tabs field (or any subfield), the API implicitly treats the request as if you set include_tabs_content to true. |
|
query.suggestionsViewMode |
string | Optional | The suggestions view mode to apply to the document. This allows viewing the document with all suggestions inline, accepted or rejected. If one is not specified, DEFAULT_FOR_CURRENT_ACCESS is used. | enum: ["DEFAULT_FOR_CURRENT_ACCESS","SUGGESTIONS_INLINE","PREVIEW_SUGGESTIONS_ACCEPTED","PREVIEW_WITHOUT_SUGGESTIONS"] |
path |
object | Required | additionalProperties: false |
|
path.documentId |
string | Required | The ID of the document to retrieve. |
Full JSON Schema
Example input
{
"path": {
"documentId": "example"
}
}
At most 1 provider requests per invocation; timeout: 30 seconds.
Errors
Check the key's expiry, revocation, workspace and allowed operations.
Reuse the same idempotency key only for the same request.
The connection or provider limit has been reached. Check the receipt before retrying.
Test the connection
Open the integration's commands below to inspect parameters and examples. Start with a read command for an account or resource you can access. Refresh your client's tool list, use the returned tool name, and check the execution result and usage. Provider charges and permissions still apply. Never test a write against production data without reviewing it.