productivity
Google Translate CLI for Coding Agents
Use the Google Translate CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 5 read 2 write API key auth
Google Translate CLI for Coding Agents
Let coding agents discover schemas and execute integration functions through CLI commands or MCP.
Use this pattern when another coding agent needs exact commands and schema discovery. The Google Translate CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Google Translate CLI for Coding Agents
kosmokrator integrations:configure google-translate --set api_key="$GOOGLE_TRANSLATE_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call google-translate.google_translate_translate_text '{"text":"example_text","target":"example_target","source":"example_source","format":"example_format"}' --json Discovery Before Execution
Agents and scripts can inspect Google Translate docs and schemas before choosing a function.
kosmo integrations:docs google-translate --json
kosmo integrations:docs google-translate.google_translate_translate_text --json
kosmo integrations:schema google-translate.google_translate_translate_text --json
kosmo integrations:search "Google Translate" --json
kosmo integrations:list --json Useful Google Translate CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
google-translate.google_translate_translate_text | Write | text, target, source, format | Translate text using Google Cloud Translation. Supports automatic source language detection or explicit source language specification. Returns translated text with detected source language. |
google-translate.google_translate_detect_language | Read | text | Detect the language of text using Google Cloud Translation. Returns detected language codes and confidence scores. |
google-translate.google_translate_list_supported_languages | Read | target | List languages supported by Google Cloud Translation. Returns language codes and names. Optionally specify a target language to localize language names. |
google-translate.google_translate_list_glossaries | Read | none | List all glossaries in your Google Cloud Translation project. Returns glossary names, language pairs, and entry counts. |
google-translate.google_translate_get_glossary | Read | name | Get details of a specific Google Cloud Translation glossary by name. Returns glossary name, language pair, entry count, and timestamps. |
google-translate.google_translate_create_glossary | Write | name, source_lang, target_lang, entries | Create a new Google Cloud Translation glossary. Glossaries define custom translations for specific terms. Provide term pairs as an array of source/target strings. |
google-translate.google_translate_get_current_user | Read | none | Verify the Google Cloud Translation API key and get connection information. Confirms the API key is valid and the service is reachable. |
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.