Detect language
detectIdentify the language of text or up to 20 strings via a self-hosted LibreTranslate instance, returning confidence scores for each detection.
Instructions
Detect the language of one or more strings using a self-hosted LibreTranslate instance (POST /detect). Returns one detection per input string, in input order, with the confidence LibreTranslate reported when it provided one.
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": {
"q": "<q>"
},
"name": "detect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | A single string, or an array of up to 20 strings, to detect. |