Detect the language of a text
detect_languageTells which language a text is written in: two-letter ISO 639-1 code and the language name in English. Nothing is translated. Use when: you need to know the language of a message, a review or a document before answering or translating it. Example: {"text":"Où est la gare ?"}
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>"
},
"name": "detect_language"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text whose language you want to know (the first 400 characters are read) |