El catálogo/Google Drive
Google Drive
app.google.drive
Browse, upload, share, and organize Drive files, read Sheets and Slides, and edit Docs
Versión2.0.0
Categoríagoogle
AutenticaciónOAuth 2
Herramientas19
Transportestdio
LicenciaMIT
01
Qué hace
La aplicación, en sus propias palabras.
Manage Google Drive files and folders - upload, download, share, search, read content
02
Herramientas
19 herramientas que el agente puede llamar.
Todas se declaran con parámetros tipados y devuelven resultados estructurados, así que el anfitrión puede renderizarlas en vez de narrarlas.
- copy-fileCreate a copy of a file in Google Drive.
- create-commentCreate a comment on a file.
- create-documentCreate a native, editable Google Doc from text content. Pass the body as HTML (default, best formatting), Markdown, or plain text — Drive converts it into a real Google Doc, NOT an .html file. Use this to author documents; use upload-file only for existing local files.
- create-folderCreate a new folder in Google Drive.
- create-replyCreate a reply to a comment. Can also be used to resolve a comment.
- delete-commentDelete a comment.
- delete-fileDelete a file or folder from Google Drive.
- download-fileDownload a file from Google Drive.
- get-commentGet a specific comment by ID.
- get-fileGet detailed information about a specific file or folder.
- get-file-contentGet the plain-text content of a Google Doc or text file. Does NOT extract text from binary files (PDF, Word, etc.) — for those, download the file and use the file-processor "file-to-markdown" tool.
- list-commentsList all comments on a file.
- list-filesList files and folders in Google Drive. Supports filtering by folder, file type, and search query.
- list-repliesList all replies to a comment.
- move-fileMove a file or folder to a different location in Google Drive.
- search-filesSearch for files in Google Drive by name, content, or properties.
- share-fileShare a file or folder with specific permissions.
- update-commentUpdate the content of a comment.
- upload-fileUpload a local file to Google Drive. By default the file is stored as-is with its real type. Pass convertTo to import it as a native Google file (e.g. an HTML/Word file -> editable Google Doc).
03
Autenticación y permisos
Qué pide.
Declarado en el manifiesto y por adelantado. La aplicación no puede alcanzar nada que no haya pedido aquí.
Permisos
https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/userinfo.email
Secretos de sistema
CLIENT_IDCLIENT_SECRET
Secretos de usuario
ACCESS_TOKENREFRESH_TOKEN
Seguir leyendo
El manifiesto y el código de Google Drive están en el monorepo, junto al resto de aplicaciones.