Translate text with AI
ai_translateTranslate text into a target language (en, zh-CN, ja, ko, fr, de, es) with the platform AI. Use this when the user wants a translation; pass extracted PDF text first if needed.
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 |