get_token_count
Count tokens for multiple texts in a single request to manage GigaChat API usage limits.
Instructions
Подсчёт токенов для массива текстов.
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": {
"input": "<input>"
},
"name": "get_token_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Массив текстов для подсчёта токенов | |
| model | No | Модель GigaChat | GigaChat |