detect_language
Identify the language of short or user-generated text across 608 languages, returning ISO 639-3 code, script, name, and confidence; choose traffic or coverage mode for chat or corpus use.
Instructions
Identify the language of a text among 608 languages (built African-first; good on very short text).
mode: "traffic" (user messages and chat; favours languages people actually use) or "coverage" (all languages equal, for building corpora). Returns the ISO 639-3 code, script, name, confidence and runners-up.
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 |
|---|---|---|---|
| mode | No | traffic | |
| text | Yes | ||
| top_k | No |