Text Processing
Анализирует частоту слов и распределение символов в тексте
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/text-word-frequency' \
-H 'Content-Type: application/json' \
-d '{"textInput":"Enter text to analyze...","analysisType":"words","caseSensitive":false,"minWordLength":1,"includeNumbers":true,"showPercentage":true,"topN":20}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/text-word-frequency| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| textInput | textarea | Да | — |
| analysisType | select | Да | — |
| caseSensitive | checkbox | Нет | — |
| minWordLength | number | Нет | — |
| includeNumbers | checkbox | Нет | — |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-text-word-frequency": {
"name": "text-word-frequency",
"description": "Анализирует частоту слов и распределение символов в тексте",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-word-frequency",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "text-word-frequency",
"arguments": {
"textInput": "Enter text to analyze...",
"analysisType": "words",
"caseSensitive": false,
"minWordLength": 1,
"includeNumbers": true,
"showPercentage": true,
"topN": 20
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| showPercentage |
| checkbox |
| Нет |
| — |
| topN | number | Нет | — |
Текстовый результат
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}