regloss_chapter_tokens
Refreshes EU target glosses on CJK-source chapters after a Gemini prompt fix, preserving Asian glosses and sentence translations. Use to update outdated EU glosses without recreating the chapter.
Instructions
Re-run Gemini per-token glossing on a CJK-source chapter using the
current GeminiTokenTranslator prompt and overwrite its stored zip
blob in place. Only EU target glosses (EN/FR/ES/DE/IT/PT) are
refreshed — Asian target glosses (ZH/JA/KO) are preserved as-is from
the original ingest's caller-supplied token_glosses, since the
server no longer produces Asian glosses. Sentence translations and
EU↔EU alignments are preserved.
Use after a Gemini prompt fix to refresh EU glosses on chapters glossed
under the older prompt. To fix bad Asian glosses on an existing
chapter, recreate it via create_chapter_from_marks with corrected
token_glosses instead — regloss can't repair what it can't produce.
Non-CJK chapters return skipped=true.
Returns {chapterId, sourceLanguage, skipped, skipReason?, markCount,
cellsChanged, totalCells}. cellsChanged/totalCells is the diagnostic:
if 0, EU glosses were already up-to-date.
Args: publication_id: Publication UUID. chapter_id: Chapter UUID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| publication_id | Yes | ||
| chapter_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |