local_translate
Translate text or file content with a local model, reading files server-side so large documents never consume your context. Splits long files at natural boundaries.
Instructions
PREFER this tool over reading the file with Read when the file is large (>200 lines / >10 KB) and you only need the translation, not the literal content.
Translates text or the content of a file with a local model, without spending Claude's context.
Pass 'path' to read the file server-side (the original does not enter Claude's context) or
'text'. Keeps the format of the original and returns ONLY the translation. Routes
automatically to the mechanical model (short) or the long-context model (long).
Long documents are split at natural boundaries (Markdown headers, paragraphs) and each chunk
is translated in its own call; the result comes back complete and in order, without the
truncated-output warning.
Args:
target_lang: Target language (e.g. 'Spanish', 'English', 'French').
text: Text to translate (use this or 'path').
path: Path to a file whose content is translated (read server-side).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| text | No | ||
| target_lang | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |