Skip to main content

google-drive

Manage Google Drive files and folders. Upload, download, share, and organize files via Drive API.

Ir para a instalação

Informações da origem

Repositório
Kernel8901/ai-agent-skills-classification
Última atividade na origem
4 de abril de 2026 às 15:26
Idioma detectado do SKILL.md
inglês
Estrelas
4
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Explorador de arquivos
2 arquivos

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
google-drive
description
Manage Google Drive files and folders. Upload, download, share, and organize files via Drive API.
metadata
{"clawdbot":{"emoji":"📁","requires":{"env":"[Truncated]"}}}
# Google Drive Cloud file storage and sharing. ## Environment ```bash export GOOGLE_ACCESS_TOKEN="ya29.xxxxxxxxxx" ``` ## List Files ```bash curl "https://www.googleapis.com/drive/v3/files?pageSize=20" \ -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" ``` ## Search Files ```bash curl "https://www.googleapis.com/drive/v3/files?q=name%20contains%20'report'" \ -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" ``` ## Get File Metadata ```bash curl "https://www.googleapis.com/drive/v3/files/{fileId}?fields=*" \ -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" ``` ## Download File ```bash curl "https://www.googleapis.com/drive/v3/files/{fileId}?alt=media" \ -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ -o downloaded_file.pdf ``` ## Upload File ```bash curl -X POST "https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart" \ -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ -F "metadata={\"name\": \"myfile.txt\"};type=application/json" \ -F "file=@localfile.txt" ``` ## Create Folder ```bash curl -X POST "https://www.googleapis.com/drive/v3/files" \ -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name": "New Folder", "mimeType": "application/vnd.google-apps.folder"}' ``` ## Share File ```bash curl -X POST "https://www.googleapis.com/drive/v3/files/{fileId}/permissions" \ -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{"role": "reader", "type": "user", "emailAddress": "user@example.com"}' ``` ## Links - Console: https://console.cloud.google.com/apis/library/drive.googleapis.com - Docs: https://developers.google.com/drive/api/v3/reference
Ver no GitHub