cli
AgentFreeGoogle Workspace CLI — one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from Google Discovery Service. Includes AI agent skills.
Capabilities13 decomposed
dynamic-command-surface-generation-from-discovery-service
Medium confidenceGenerates the entire CLI command surface at runtime by fetching Google's Discovery Service JSON schemas and parsing them into executable commands. Unlike static CLI tools with hardcoded commands, gws reads Discovery Documents for each API (Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin) and builds command trees dynamically, ensuring new Google API endpoints are automatically available without code changes or releases. Uses a two-phase parsing strategy: first clap parses static global flags, then Discovery Document schemas are loaded to build method-specific argument parsers.
Uses Google Discovery Service as the single source of truth for command definitions, eliminating the need for static command lists or manual API schema maintenance. Two-phase parsing (clap for globals, then Discovery Document for method-specific args) bridges static and dynamic argument handling.
Automatically stays in sync with Google API changes without releases, whereas gcloud CLI and other static wrappers require manual updates and redeployment when Google adds new endpoints
structured-json-output-with-format-negotiation
Medium confidenceEnsures all API responses are returned as structured JSON by default, with optional format conversion to YAML, CSV, or human-readable tables via --format flag. Every gws command returns machine-parseable output suitable for piping to jq, agents, or downstream systems. Implements format negotiation at the response serialization layer, allowing consumers to choose their preferred output representation without re-invoking the API.
Guarantees all responses are JSON-first with optional format conversion, making gws output inherently suitable for AI agents and scripting. Unlike curl or gcloud which return raw text, gws structures every response for machine consumption.
Provides format negotiation without re-invoking APIs, whereas gcloud requires separate formatting commands or post-processing; more suitable for agent-driven workflows that demand deterministic JSON output
http-client-with-request-execution-and-retry-logic
Medium confidenceImplements a custom HTTP client layer that executes authenticated requests to Google APIs with built-in retry logic, exponential backoff, and error handling. The client manages request marshaling (JSON serialization), response parsing, and error classification (retryable vs. fatal). Handles rate limiting (429 responses) and transient failures (5xx errors) transparently, improving reliability for long-running workflows.
Implements transparent retry logic with exponential backoff at the HTTP client layer, handling rate limiting and transient failures without user intervention. Classifies errors as retryable or fatal for intelligent retry decisions.
More reliable than raw curl for flaky networks because gws retries automatically; gcloud has similar retry logic but gws exposes it more transparently
workspace-api-coverage-across-drive-gmail-calendar-sheets-docs-chat-admin
Medium confidenceProvides unified CLI access to all major Google Workspace APIs (Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin) through a single command interface. Each API is discovered dynamically from Google's Discovery Service, ensuring feature parity with the latest API versions. Supports all resource types and methods for each service, from file operations in Drive to message management in Gmail to spreadsheet operations in Sheets.
Provides unified access to all major Workspace APIs through a single CLI, dynamically discovering all available methods. No separate tools or command syntax per service.
More comprehensive than gcloud (which focuses on Cloud) or individual API clients; gws is the only tool providing unified Workspace API access with dynamic discovery
ndjson-streaming-output-for-memory-efficient-processing
Medium confidenceReturns paginated results as newline-delimited JSON (NDJSON) where each line is a complete JSON object, enabling streaming processing without loading entire result sets into memory. NDJSON format is compatible with standard Unix tools (grep, sed, awk) and streaming JSON processors (jq, jstream). Particularly useful for large exports (100k+ records) where loading everything into memory would be infeasible.
Uses NDJSON for streaming output, enabling memory-efficient processing of large result sets. Compatible with Unix tools and streaming JSON processors.
More memory-efficient than gcloud for large exports because NDJSON streams results; gcloud returns single JSON arrays which must be loaded entirely into memory
multi-method-authentication-with-credential-management
Medium confidenceSupports multiple authentication flows (interactive OAuth2, service account JSON, raw access tokens, CI environment exports) with automatic credential discovery and token refresh. Implements a credential manager that handles OAuth2 token lifecycle, service account key loading, and environment-based auth for CI/CD pipelines. Credentials are cached locally and refreshed transparently when expired, eliminating manual token management for long-running workflows.
Implements transparent token lifecycle management with automatic refresh and multiple auth method support in a single credential manager. Supports both interactive (OAuth2) and non-interactive (service account, token) flows without requiring separate configuration.
Simpler than gcloud auth setup for CI/CD; automatically handles token refresh without manual intervention, whereas raw curl or REST clients require explicit token management
pagination-with-automatic-result-aggregation
Medium confidenceAutomatically fetches all paginated results from Google Workspace APIs using the --page-all flag, returning results as newline-delimited JSON (NDJSON) for memory-efficient streaming. Implements pagination logic at the HTTP client layer, transparently following next-page tokens and aggregating results without requiring manual pagination loops. Supports both list operations and streaming output for large result sets.
Implements transparent pagination at the HTTP client layer with NDJSON streaming output, eliminating manual pagination loops. Automatically follows nextPageToken across all pages without user intervention.
More efficient than gcloud for large datasets because NDJSON streaming avoids loading entire result sets into memory; gcloud returns single JSON arrays which can exhaust memory on large exports
ai-agent-skill-system-with-40-plus-predefined-skills
Medium confidenceProvides 40+ pre-built agent skills (documented in SKILL.md files) that encapsulate common Workspace operations for AI agents and LLM workflows. Skills are high-level abstractions over raw API calls (e.g., +append for appending to Sheets, +upload for Drive file uploads, +send for Gmail messages, +read for document content extraction). Designed for OpenClaw and Gemini CLI extensions, allowing LLMs to invoke complex multi-step operations as single commands.
Provides domain-specific skills (not just raw API bindings) designed explicitly for LLM agents, with SKILL.md documentation that agents can read to understand capabilities. Skills abstract multi-step operations into single commands suitable for agent reasoning.
More agent-friendly than raw API calls because skills are semantically meaningful to LLMs; gcloud and curl require agents to understand API schemas, whereas gws skills are documented in natural language for agent comprehension
service-helper-abstractions-for-common-operations
Medium confidenceProvides high-level service helpers (+append, +upload, +send, +read) that encapsulate common patterns across Google Workspace services without requiring deep API knowledge. Helpers are implemented as convenience wrappers over raw API calls, handling parameter marshaling, error handling, and response formatting. For example, +upload abstracts Drive file creation with multipart uploads, +append handles Sheets batch updates, +send manages Gmail message composition with attachments.
Provides semantic helpers (+append, +upload, +send, +read) that map to user intents rather than raw API methods. Helpers handle parameter marshaling and error handling transparently.
More intuitive than raw API calls for common operations; gcloud requires understanding service-specific syntax, whereas gws helpers use consistent naming across services
response-sanitization-with-google-cloud-model-armor
Medium confidenceIntegrates Google Cloud Model Armor via the --sanitize flag to filter sensitive data from API responses before returning them to users or agents. Sanitization removes PII (personally identifiable information), credentials, and other sensitive fields from structured responses, making them safe for logging, sharing, or passing to untrusted agents. Implemented at the response serialization layer, operating on the JSON response before output formatting.
Integrates Google Cloud Model Armor for automated PII detection and removal, operating at the response layer. Provides compliance-grade sanitization without manual field mapping.
More comprehensive than manual field filtering because Model Armor uses ML to detect PII; gcloud and curl require manual jq filtering which is error-prone and incomplete
parameter-passing-with-json-and-inline-syntax
Medium confidenceSupports flexible parameter passing via --params (JSON object), --json (raw JSON file), and inline flag syntax for API method arguments. Parameters are validated against Discovery Document schemas before sending to Google APIs, ensuring type correctness and required field presence. Supports nested objects and arrays, allowing complex request bodies to be specified from the command line or files.
Validates parameters against Discovery Document schemas before sending to APIs, catching errors at the CLI layer. Supports both inline and file-based parameter passing with schema validation.
More robust than curl because parameter validation happens before API calls; gcloud requires manual schema knowledge, whereas gws validates against live Discovery Documents
two-phase-argument-parsing-for-dynamic-commands
Medium confidenceImplements a two-phase parsing strategy that bridges static CLI argument parsing (clap) with dynamic Discovery Document schemas. Phase 1 parses global flags (--format, --sanitize, --page-all) using clap; Phase 2 loads the Discovery Document for the requested API and builds method-specific argument parsers dynamically. This allows gws to support arbitrary Google API methods without pre-compiling command definitions, while still providing early validation and help text.
Uses a two-phase parsing strategy that separates static global flags (clap) from dynamic method-specific arguments (Discovery Document). Enables arbitrary API method support without pre-compilation.
More flexible than static CLIs because new API methods are supported immediately; gcloud requires manual command definitions and releases, whereas gws discovers commands at runtime
gemini-cli-extension-integration-for-llm-agents
Medium confidenceIntegrates with Google's Gemini CLI extension to expose gws commands and skills as tools available to Gemini LLM agents. The extension reads gws SKILL.md files and command definitions to build a tool registry that Gemini can invoke. Enables Gemini agents to autonomously perform Workspace tasks (send emails, create documents, manage calendars) by calling gws commands with natural language reasoning.
Provides native Gemini integration via CLI extension, allowing Gemini to discover and invoke gws commands without custom tool definitions. Skills are documented in SKILL.md for Gemini to read and understand.
Simpler than building custom Gemini tools because gws skills are pre-built and documented; teams don't need to define tool schemas or implement Workspace logic
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with cli, ranked by overlap. Discovered automatically through the match graph.
OpenAI API
OpenAI's API provides access to GPT-3 and GPT-4 models, which performs a wide variety of natural language tasks, and Codex, which translates natural...
CAMEL
Architecture for “Mind” Exploration of agents
Mistral: Mixtral 8x7B Instruct
Mixtral 8x7B Instruct is a pretrained generative Sparse Mixture of Experts, by Mistral AI, for chat and instruction use. Incorporates 8 experts (feed-forward networks) for a total of 47 billion...
Cohere: Command A
Command A is an open-weights 111B parameter model with a 256k context window focused on delivering great performance across agentic, multilingual, and coding use cases. Compared to other leading proprietary...
Mistral: Mistral Nemo
A 12B parameter model with a 128k token context length built by Mistral in collaboration with NVIDIA. The model is multilingual, supporting English, French, German, Spanish, Italian, Portuguese, Chinese, Japanese,...
mcp-use
The fullstack MCP framework to develop MCP Apps for ChatGPT / Claude & MCP Servers for AI Agents.
Best For
- ✓DevOps teams automating Google Workspace administration at scale
- ✓AI agents and LLM workflows that need to discover and call arbitrary Google APIs
- ✓Organizations with frequent Google Workspace API updates who want zero-maintenance CLI sync
- ✓DevOps engineers building automation scripts that chain gws commands
- ✓AI agents and LLM workflows requiring deterministic, parseable output
- ✓Data analysts exporting Workspace data for analysis or compliance reporting
- ✓Long-running batch operations and data migrations
- ✓Environments with unreliable network connectivity
Known Limitations
- ⚠Discovery Service must be reachable at runtime — offline operation requires cached schemas
- ⚠Initial command discovery adds ~500ms-1s latency on first invocation per API
- ⚠Depends on Google maintaining Discovery Service format stability; breaking changes would require gws updates
- ⚠Cannot add custom commands or aliases beyond what Discovery Service exposes
- ⚠CSV export flattens nested objects — complex hierarchical data may lose structure
- ⚠Table format is human-readable but not machine-parseable; use JSON for automation
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
Last commit: Apr 22, 2026
About
Google Workspace CLI — one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from Google Discovery Service. Includes AI agent skills.
Categories
Alternatives to cli
Are you the builder of cli?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →