/gws:gws-searchfrom gws
Performs web searches using Google Programmable Search Engine via the gws CLI. Supports site-specific, image, and paginated searches with structured JSON output.
Ships in gws. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
gws search provides CLI access to Google Programmable Search Engine (Custom Search) with structured JSON output.
Disclaimer:
gwsis not the official Google CLI. This is an independent, open-source project not endorsed by or affiliated with Google.
Before executing any gws command, verify the CLI is installed:
gws version
If not found, install: go install github.com/omriariav/workspace-cli/cmd/gws@latest
Requires separate API credentials beyond standard OAuth:
GWS_SEARCH_ENGINE_ID and GWS_SEARCH_API_KEY environment variables, or add search_engine_id and search_api_key to your config file| Task | Command |
|---|---|
| Web search | gws search "query" |
| Limit results | gws search "query" --max 5 |
| Search a site | gws search "query" --site example.com |
| Image search | gws search "query" --type image |
| Paginate results | gws search "query" --start 11 |
| Override API key | gws search "query" --api-key <key> --engine-id <id> |
gws search <query> [flags]
Flags:
--max int — Maximum number of results, 1-10 (default 10)--site string — Restrict search to a specific site--type string — Search type: image or empty for web--start int — Start index for results pagination (default 1)--api-key string — API Key (overrides config)--engine-id string — Search Engine ID (overrides config)Examples:
gws search "golang best practices"
gws search "kubernetes deployment" --max 5
gws search "release notes" --site github.com
gws search "logo" --type image
gws search "query" --start 11 # Page 2 of results
gws search "query" --format json # Structured JSON (default)
gws search "query" --format yaml # YAML format
gws search "query" --format text # Human-readable text
--format json (the default) for programmatic parsing--start to paginate--site flag is useful for searching within a specific domain--type image) returns image URLs and metadataWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub omriariav/workspace-cli --plugin gws16 skills in this plugin
/gws-authGoogle Workspace CLI authentication setup and management. Use when users need to set up OAuth credentials, authenticate with Google APIs, or troubleshoot authentication issues. Triggers: gws auth, google workspace setup, oauth, credentials, client id, api setup./gws-calendarGoogle Calendar CLI operations via gws. Use when users need to list calendars, view events, create/update/delete events, RSVP to invitations, manage calendar CRUD, subscriptions, ACL, free/busy queries, colors, and settings. Triggers: calendar, events, meetings, schedule, rsvp, invite, share, freebusy./gws-chatGoogle Chat CLI operations via gws. Use when users need to list/create/manage chat spaces, read/send messages, manage members, track read state, handle attachments, or monitor space events. Triggers: google chat, gchat, chat spaces, chat messages.Other plugins' skills for the same job