Skip to main content

Add Drive permission

Action ID: tools.google_drive.add_permission Grant access to a file or folder.

Secrets

Required secrets:
  • google_drive_oauth: OAuth token GOOGLE_DRIVE_USER_TOKEN.

Input fields

email
string
required
Email address to grant access to
file_id
string
required
The file or folder ID
fields
string
Fields to return (’*’ for all)Default: "*".
role
string
Role: reader, writer, commenter, ownerDefault: "reader".
send_notification
boolean
Send email notificationDefault: false.

Create Drive folder

Action ID: tools.google_drive.create_folder Create a new folder in Google Drive.

Secrets

Required secrets:
  • google_drive_oauth: OAuth token GOOGLE_DRIVE_USER_TOKEN.

Input fields

folder_name
string
required
Name for the new folder
fields
string
Fields to return (’*’ for all)Default: "*".
parent_folder_id
string
Parent folder ID (empty = root)Default: "".

Delete Drive file

Action ID: tools.google_drive.delete_file Move a file or folder to trash.

Secrets

Required secrets:
  • google_drive_oauth: OAuth token GOOGLE_DRIVE_USER_TOKEN.

Input fields

file_id
string
required
The file or folder ID to delete
fields
string
Fields to return (’*’ for all)Default: "*".

Get Drive file

Action ID: tools.google_drive.get_file Get detailed metadata for a specific file.

Secrets

Required secrets:
  • google_drive_oauth: OAuth token GOOGLE_DRIVE_USER_TOKEN.

Input fields

file_id
string
required
The file ID
fields
string
Fields to return (’*’ for all)Default: "*".

Get Drive file permissions

Action ID: tools.google_drive.get_file_permissions List all permissions for a file or folder.

Secrets

Required secrets:
  • google_drive_oauth: OAuth token GOOGLE_DRIVE_USER_TOKEN.

Input fields

file_id
string
required
The file ID
fields
string
Fields to return (’*’ for all)Default: "*".

List Drive files

Action ID: tools.google_drive.list_files List and search files in Google Drive.

Secrets

Required secrets:
  • google_drive_oauth: OAuth token GOOGLE_DRIVE_USER_TOKEN.

Input fields

fields
string
Fields to return (e.g., ‘files(id,name,mimeType)’ or ’*’ for all)Default: "*".
max_results
integer
Maximum number of resultsDefault: 10.
order_by
string
Sort orderDefault: "modifiedTime desc".
query
string
Search query (e.g., ‘name contains “report”’)Default: "".

Permanently delete Drive file

Action ID: tools.google_drive.permanently_delete_file Permanently delete a file or folder (bypass trash).

Secrets

Required secrets:
  • google_drive_oauth: OAuth token GOOGLE_DRIVE_USER_TOKEN.

Input fields

file_id
string
required
The file or folder ID to permanently delete

Revoke Drive permission

Action ID: tools.google_drive.revoke_permission Remove a permission (revoke access).

Secrets

Required secrets:
  • google_drive_oauth: OAuth token GOOGLE_DRIVE_USER_TOKEN.

Input fields

file_id
string
required
The file or folder ID
permission_id
string
required
The permission ID to revoke

Update Drive permission

Action ID: tools.google_drive.update_permission Update an existing permission (change role).

Secrets

Required secrets:
  • google_drive_oauth: OAuth token GOOGLE_DRIVE_USER_TOKEN.

Input fields

file_id
string
required
The file or folder ID
permission_id
string
required
The permission ID to update
role
string
required
New role: reader, writer, commenter
fields
string
Fields to return (’*’ for all)Default: "*".

Upload Drive file

Action ID: tools.google_drive.upload_file Upload a file to Google Drive.

Secrets

Required secrets:
  • google_drive_oauth: OAuth token GOOGLE_DRIVE_USER_TOKEN.

Input fields

file_content
string
required
Base64-encoded file content
file_name
string
required
Name for the uploaded file
fields
string
Fields to return (’*’ for all)Default: "*".
mime_type
string
MIME type of fileDefault: "application/octet-stream".
parent_folder_id
string
Parent folder ID (empty = root)Default: "".