Use the Google Translate CLI from KosmoKrator to call Google Translate tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Google Translate can be configured headlessly with `kosmokrator integrations:configure google-translate`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure google-translate --set api_key="$GOOGLE_TRANSLATE_API_KEY" --enable --read allow --write ask --jsonkosmokrator integrations:doctor google-translate --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
api_key
GOOGLE_TRANSLATE_API_KEY
Secret secret
yes
API Key
base_url
GOOGLE_TRANSLATE_BASE_URL
URL url
no
API Base URL
Call Google Translate Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Google Translate.
google-translate.google_translate_translate_text
Write write
Translate text using Google Cloud Translation. Supports automatic source language detection or explicit source language specification. Returns translated text with detected source language.
List languages supported by Google Cloud Translation. Returns language codes and names. Optionally specify a target language to localize language names.
Create a new Google Cloud Translation glossary. Glossaries define custom translations for specific terms. Provide term pairs as an array of source/target strings.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
google-translate.google_translate_translate_text
Translate text using Google Cloud Translation. Supports automatic source language detection or explicit source language specification. Returns translated text with detected source language.
List languages supported by Google Cloud Translation. Returns language codes and names. Optionally specify a target language to localize language names.
Target language code for localizing language names (e.g., "en" for English names, "fr" for French names). If omitted, only language codes are returned.
google-translate.google_translate_list_glossaries
List all glossaries in your Google Cloud Translation project. Returns glossary names, language pairs, and entry counts.
The glossary resource name (e.g., "projects/PROJECT_ID/locations/LOCATION/glossaries/GLOSSARY_ID").
google-translate.google_translate_create_glossary
Create a new Google Cloud Translation glossary. Glossaries define custom translations for specific terms. Provide term pairs as an array of source/target strings.
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.