Google Drive
The Google Drive integration provides file management, sharing, and search capabilities.
skillett connect google-driveSkillett handles all authentication automatically when you connect.
Endpoints
Section titled “Endpoints”| Endpoint | Method | Description |
|---|---|---|
list_files | GET | List files and folders |
get_file | GET | Get file metadata |
create_file | POST | Upload a new file |
update_file | PATCH | Update file metadata or content |
delete_file | DELETE | Delete a file |
copy_file | POST | Copy a file |
search_files | GET | Search for files |
create_folder | POST | Create a folder |
list_permissions | GET | List sharing permissions |
create_permission | POST | Share a file |
delete_permission | DELETE | Remove sharing |
export_file | GET | Export Google Docs to other formats |
get_file_content | GET | Download file content |
move_file | PATCH | Move file to different folder |
list_changes | GET | List recent changes |
Example usage
Section titled “Example usage”# List files in rootskillett run google-drive list_files --q "'root' in parents"
# Search for documentsskillett run google-drive search_files --q "name contains 'report' and mimeType='application/vnd.google-apps.document'"
# Share a fileskillett run google-drive create_permission --fileId "abc123" --role writer --type user --emailAddress "user@example.com"Common patterns
Section titled “Common patterns”- File IDs: Google Drive uses opaque string IDs
- MIME types: Google Docs have special MIME types (e.g.,
application/vnd.google-apps.document) - Search syntax: Uses Drive’s query syntax (
name contains,mimeType=,'folderId' in parents)