| name | google_workspace |
| description | Interact with Google Drive, Docs, and Sheets via the google_workspace CLI (alias: gw). Use this skill whenever the user mentions Google Drive, Google Docs, Google Sheets, spreadsheets, documents, or wants to search/create/edit files in Google Workspace. Also trigger on "find a doc", "create a spreadsheet", "share file", "export to PDF", "my Google files", or anything about Google Workspace content. Even if the user just says "open that doc" or "check the spreadsheet" — use this skill.
|
Google Workspace CLI
CLI for Google Drive, Docs, and Sheets. Runs through MCPHub (localhost:9700).
Commands available as google_workspace or shorthand gw.
gw <subcommand> [flags]
Default email: danilpismenny@gmail.com — always pass as --user-google-email.
Interactive Workflow
Guide the user step-by-step. Start with search or listing, then drill into specific files.
Finding files
gw google-workspace-search-drive-files \
--user-google-email danilpismenny@gmail.com --query "quarterly report"
gw google-workspace-list-drive-items \
--user-google-email danilpismenny@gmail.com
gw google-workspace-list-drive-items \
--user-google-email danilpismenny@gmail.com --folder-id FOLDER_ID
gw google-workspace-search-docs \
--user-google-email danilpismenny@gmail.com --query "meeting notes"
Present results as a list with name, type, last modified. Ask user which file to open.
Reading content
gw google-workspace-get-doc-as-markdown \
--user-google-email danilpismenny@gmail.com --document-id DOC_ID
gw google-workspace-get-doc-content \
--user-google-email danilpismenny@gmail.com --document-id DOC_ID
gw google-workspace-read-sheet-values \
--user-google-email danilpismenny@gmail.com \
--spreadsheet-id SHEET_ID --range "Sheet1!A1:D10"
gw google-workspace-get-spreadsheet-info \
--user-google-email danilpismenny@gmail.com --spreadsheet-id SHEET_ID
gw google-workspace-get-drive-file-content \
--user-google-email danilpismenny@gmail.com --file-id FILE_ID
Creating content
gw google-workspace-create-doc \
--user-google-email danilpismenny@gmail.com \
--title "Title" --content "Body text"
gw google-workspace-create-doc \
--user-google-email danilpismenny@gmail.com \
--title "Title" --content "Body" --folder-id FOLDER_ID
gw google-workspace-create-spreadsheet \
--user-google-email danilpismenny@gmail.com --title "Title"
gw google-workspace-create-drive-folder \
--user-google-email danilpismenny@gmail.com \
--folder-name "Name" --parent-folder-id PARENT_ID
gw google-workspace-create-drive-file \
--user-google-email danilpismenny@gmail.com \
--file-name "Name" --mime-type "text/plain" --content "content"
Editing content
gw google-workspace-modify-doc-text \
--user-google-email danilpismenny@gmail.com --document-id DOC_ID \
--raw '{"operations": [{"action": "insert", "text": "Hello", "index": 1}]}'
gw google-workspace-find-and-replace-doc \
--user-google-email danilpismenny@gmail.com \
--document-id DOC_ID --find "old text" --replace "new text"
gw google-workspace-modify-sheet-values \
--user-google-email danilpismenny@gmail.com \
--spreadsheet-id SHEET_ID --range "Sheet1!A1" \
--raw '{"values": [["a","b"],["c","d"]]}'
gw google-workspace-format-sheet-range \
--user-google-email danilpismenny@gmail.com \
--spreadsheet-id SHEET_ID --range "Sheet1!A1:D1" --raw '{"bold": true}'
Sharing & permissions
gw google-workspace-share-drive-file \
--user-google-email danilpismenny@gmail.com \
--file-id FILE_ID --share-with-email someone@example.com --role reader
gw google-workspace-get-drive-shareable-link \
--user-google-email danilpismenny@gmail.com --file-id FILE_ID
gw google-workspace-get-drive-file-permissions \
--user-google-email danilpismenny@gmail.com --file-id FILE_ID
Export & other
gw google-workspace-export-doc-to-pdf \
--user-google-email danilpismenny@gmail.com --document-id DOC_ID
gw google-workspace-copy-drive-file \
--user-google-email danilpismenny@gmail.com \
--file-id FILE_ID --new-name "Copy Name"
gw google-workspace-read-document-comments \
--user-google-email danilpismenny@gmail.com --document-id DOC_ID
gw google-workspace-create-document-comment \
--user-google-email danilpismenny@gmail.com \
--document-id DOC_ID --comment "Comment text"
Commands Reference
| Group | Commands |
|---|
| Drive | search-drive-files, list-drive-items, get-drive-file-content, get-drive-file-download-url, create-drive-folder, create-drive-file, copy-drive-file, update-drive-file, import-to-google-doc |
| Sharing | share-drive-file, batch-share-drive-file, get-drive-shareable-link, get-drive-file-permissions, check-drive-file-public-access, set-drive-file-permissions, update-drive-permission, remove-drive-permission, transfer-drive-ownership |
| Docs | search-docs, get-doc-content, get-doc-as-markdown, list-docs-in-folder, create-doc, modify-doc-text, find-and-replace-doc, insert-doc-elements, insert-doc-image, update-doc-headers-footers, batch-update-doc, inspect-doc-structure, create-table-with-data, export-doc-to-pdf, update-paragraph-style |
| Sheets | list-spreadsheets, get-spreadsheet-info, read-sheet-values, modify-sheet-values, format-sheet-range, add-conditional-formatting, update-conditional-formatting, delete-conditional-formatting, create-spreadsheet, create-sheet |
| Comments | read-document-comments, create-document-comment, reply-to-document-comment, resolve-document-comment, read-spreadsheet-comments, create-spreadsheet-comment, reply-to-spreadsheet-comment, resolve-spreadsheet-comment |
| Auth | start-google-auth |
All commands prefixed with google-workspace-. If auth fails: gw google-workspace-start-google-auth --service-name drive
Tips
- Use
--raw '{"key": "value"}' for complex parameters (operations, values, formatting)
- File/folder IDs come from search or list commands — run those first
get-doc-as-markdown is better than get-doc-content for readable output
- MCPHub must be running:
make status in /home/danil/code/mcp-hub
- When presenting files, summarize key info — don't dump raw output