Ai Translate Content
ai_translate_contentTranslate text or Drupal content into a target language using AI, with source language defaulting to English. Meets multilingual content needs by converting strings between languages.
Instructions
Translate content using AI.
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": {
"content": "<content>",
"target_lang": "<target_lang>"
},
"name": "ai_translate_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| source_lang | No | en | |
| target_lang | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||