write_chunk
Write a chunk's translation to the ebook cache, verify alignment, and prevent unintended overwrites.
Instructions
Write the full translation of one chunk (stripped before writing, matching plugin behavior; engine name and target language are recorded). chunk_id is this book's database cache id (never changes; see list_chunks; valid only inside this book). Right after writing, the tool replicates the UI alignment check and returns the aligned state — mismatched block counts come with a warning (the chunk will be highlighted yellow in the UI). With overwrite=False an existing translation is skipped. The response echoes book_id and title: writing is irreversible, verify it is the intended book first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book_id | Yes | ||
| chunk_id | Yes | ||
| overwrite | No | ||
| translation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||