ai_translate
Translate text into any of 100+ languages. Provide target language code or name; source language is optional. Pay per call via Lightning.
Instructions
Translate between 100+ languages. [20 sats per call]
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": {
"text": "<text>",
"target": "<target>"
},
"name": "ai_translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| target | Yes | target language code or name | |
| source | No | source language (optional, auto-detect) | |
| preimage | No | (L402 mode) Preimage from paid Lightning invoice — only needed if no API key is set | |
| macaroon | No | (L402 mode) Macaroon from the previous 402 challenge |