Google Drive
Create files in Google Drive and read the files Chainabit created.
| Family | Category | Sub-type | Auth type |
|---|---|---|---|
| Productivity | productivity | file-storage | oauth2 |
Overview
| Product URL | API docs | Supported features |
|---|---|---|
| https://workspace.google.com/products/drive/ | https://developers.google.com/workspace/drive/api/guides/about-sdk | tool_discovery, health_check, approval_gated_writes |
Setup
- Install the connector instance.
- Complete the OAuth authorization flow.
- Sync the tools and test the connection.
Auth & Configuration
This connector does not require additional instance config.
Available Tools
| Tool | Requires approval | Description |
|---|---|---|
list_files | No | List the files Chainabit created in Google Drive. |
get_file | No | Retrieve metadata for a single file Chainabit created, by its ID. |
create_file | Per your policy | Create a new file in your own Google Drive with metadata. |
Use list_files for the main execution example below because it is safe to run without approval.
Examples
Install
curl -X POST "https://api.chainabit.com/api/v1/connectors/instances" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"connectorKey": "google-drive",
"displayName": "Google Drive"
}'Credentials
curl -X POST "https://api.chainabit.com/api/v1/connectors/instances/$INSTANCE_ID/oauth/initiate" \
-H "Authorization: Bearer $TOKEN"Execute
curl -X POST "https://api.chainabit.com/api/v1/connectors/instances/$INSTANCE_ID/tools/tool_list_files/execute" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"input": {}
}'Google access and scopes
This connector requests only the following Google OAuth scope:
https://www.googleapis.com/auth/drive.file
With the drive.file scope the Drive connector can only see and touch files that Chainabit created, or that you open with it. List Files (list_files) and Get File (get_file) therefore return only those files, not the rest of your Drive. Create File (create_file) creates a new file in your own Drive. Creating a file is a reversible write on your own account: you can delete the file in Drive. It runs according to your Ask, Allow or Block policy for the tool, and asks first by default when no policy is set. Chainabit does not offer sharing files, and it does not modify or delete existing files.
Limited Use of Google user data
Chainabit's use and transfer of information received from Google APIs adheres to the Google API Services User Data Policy, including the Limited Use requirements. In practice:
- Google user data is used only to provide the features you request in Chainabit, such as reading files Chainabit created in your Drive, creating a file in your Drive, or sending an email or changing an event after you approve it.
- Chainabit does not use Google user data to develop, improve or train generalized AI or machine-learning models, and does not allow model providers to do so.
- Chainabit does not sell Google user data and does not use it for advertising.
- Humans do not read Google user data unless you give consent for specific items, it is needed for security purposes such as investigating abuse, or it is required by law.
- Content from Google Workspace is sent only to AI providers that have been approved for it under a no-training contract. If no approved provider is available, the request is refused and nothing is sent. Chainabit does not publish a list of approved providers on this page.
Security Notes
- Keep tokens, API keys, and connection strings in the encrypted credentials vault.
- Do not allow arbitrary server URLs for remote MCP connectors.
Troubleshooting
- If the health check fails, verify the token scope or credential payload and try again.
- If the tool list is empty, re-run sync-tools after storing the latest credentials.