gloss_tokens
Generate per-token glosses into EU languages (EN, FR, ES, DE, IT, PT) from a source sentence. Uses sentence translations for context.
Instructions
Break-glass: ask Gemini for per-token offline glosses into EU targets
only (EN/FR/ES/DE/IT/PT). Returns a list of {lang: gloss} — one entry
per input token in the same order. Asian target glosses (ZH/JA/KO) are
not produced by this tool — the server-side guard rejects them; supply
them as token_glosses on create_chapter_from_marks instead.
Args:
source_language: Source lang code (typically CJK: ZH / JA / KO).
sentence_text: The source sentence containing the tokens.
sentence_translations: Sentence-level translations, e.g.
{"EN": "...", "FR": "..."} — richer context = better glosses.
tokens: List of token strings (substrings of sentence_text).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_language | Yes | ||
| sentence_text | Yes | ||
| sentence_translations | Yes | ||
| tokens | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |