detect_lang
ISO-639-1 language of a text with confidence and top-3 candidates, 55 languages, works from a few words. Cost €0.0005 per request, charged to the API key in Authorization: Bearer. Parameters — text: text, up to 20 000 chars.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "detect_lang"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |