analytics
Google Search Console CLI for Cron Jobs
Use the Google Search Console CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 7 read 0 write Manual OAuth token auth
Google Search Console CLI for Cron Jobs
Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.
Use the headless CLI from cron when an operation should run without an interactive agent session. The Google Search Console CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Google Search Console CLI for Cron Jobs
kosmokrator integrations:configure google-search-console --set access_token="$GOOGLE_SEARCH_CONSOLE_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call google-search-console.gsc_list_sites '{"pageSize":1,"pageToken":"example_pageToken"}' --json Discovery Before Execution
Agents and scripts can inspect Google Search Console docs and schemas before choosing a function.
kosmo integrations:docs google-search-console --json
kosmo integrations:docs google-search-console.gsc_list_sites --json
kosmo integrations:schema google-search-console.gsc_list_sites --json
kosmo integrations:search "Google Search Console" --json
kosmo integrations:list --json Useful Google Search Console CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
google-search-console.gsc_list_sites | Read | pageSize, pageToken | List all sites the authenticated user has access to in Google Search Console. Returns site URLs and permission levels. |
google-search-console.gsc_get_site | Read | id | Get details for a specific site in Google Search Console, including permission level. |
google-search-console.gsc_list_sitemaps | Read | site_url, pageSize, pageToken, shortUrls | List sitemaps submitted for a site in Google Search Console. Returns sitemap URLs, types, and indexing status. |
google-search-console.gsc_get_sitemap | Read | site_url, id | Get details for a specific sitemap in Google Search Console, including indexing status and any errors. |
google-search-console.gsc_list_search_analytics | Read | site_url, startDate, endDate, dimensions, type | Query search performance data from Google Search Console — clicks, impressions, CTR, and average position. Group by dimensions like query, page, country, or device. |
google-search-console.gsc_list_url_inspection | Read | site_url, pageToken, limit, inspectionResult | Inspect URLs for a site in Google Search Console. Returns indexing status, crawl information, and any detected issues. |
google-search-console.gsc_get_current_user | Read | none | Get the authenticated user's profile from Google Search Console. Returns email and account information. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.