post_translate_text
TRANSLATION — POST {text, target} and get the translation plus the detected source language. Any language pair; target as a name or ISO code ('spanish', 'de', 'ja'). Up to 8,000 chars per call; line breaks and markdown preserved; code, URLs, and proper names left alone. Optional {source} to pin the source language, {formality}: formal|informal. Fast cheap LLM under the hood; the x402 payment IS the auth. ($0.01 per call, paid via x402)
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": "post_translate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to translate, up to 8,000 characters | |
| source | No | Optional source language; auto-detected when omitted | |
| target | Yes | Target language — name or ISO code ('spanish', 'de', 'ja') | |
| formality | No | formal or informal register (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| usage | No | ||
| target | No | ||
| translation | No | ||
| source_language | No | detected (or provided) source language |