wafle_ai_translate
Translate text between languages for wafle stores, preserving markdown, lists, links, and placeholders. Cached translations make re-translating the same text free.
Instructions
Translate a piece of text from one language to another. Cached by sha256(source_text|source_lang|target_lang) — re-translating the same input is free.
Preserves markdown, lists, links and {{placeholders}}. Use for product descriptions, emails, or short copy snippets. Source and target are language codes ('es', 'en', 'pt', 'es-AR', 'pt-BR').
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>",
"text": "<text>",
"source_lang": "<source_lang>",
"target_lang": "<target_lang>"
},
"name": "wafle_ai_translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Wafle store slug, e.g. 'gamerland' or 'lensitive'. | |
| text | Yes | Source text to translate. | |
| source_lang | Yes | Language code: 'es', 'en', 'pt', or extended 'es-AR' / 'pt-BR'. | |
| target_lang | Yes | Language code: 'es', 'en', 'pt', or extended 'es-AR' / 'pt-BR'. |