Text Processing
Вставьте длинный текст и разбейте его на нумерованный тред X, соблюдая лимит 280 символов. Деление по границам слов/предложений/абзацев, автонумерация 1/N, корректный учёт CJK и полноширинных символов, URL считаются за 23 символа, и карта в стиле X со счётчиком символов.
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/twitter-thread-splitter' \
-H 'Content-Type: application/json' \
-d '{"text":"Designing for latency is harder than designing for throughput. Throughput rewards batching and parallelism. Latency punishes them, because every extra hop adds queuing delay. The fastest request is the one you never make. Cache aggressively, but measure the cache hit ratio — a 50% hit rate barely helps P99. Finally, budget for failure: retries and timeouts are themselves latency sources, and they compound under load.","limit":280,"mode":"sentence","numbering":"slash","separator":"—","keepBreaks":true,"reserveUrl":true}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/twitter-thread-splitter| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| text | textarea | Да | The text you want to split into an X thread. |
| limit | number | Да | Character budget per tweet. 280 is the standard X limit (CJK and URLs are weighted per X rules). |
| mode | select | Нет | — |
| numbering | select | Нет | — |
| separator | text | Нет | Text placed between content and the numbering tag (e.g. — or a newline). |
| keepBreaks | checkbox | Нет | — |
| reserveUrl | checkbox | Нет | When on, URLs count as 23 characters (X behaviour). When off, URLs count by their raw length. |
HTML-результат
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-twitter-thread-splitter": {
"name": "twitter-thread-splitter",
"description": "Вставьте длинный текст и разбейте его на нумерованный тред X, соблюдая лимит 280 символов. Деление по границам слов/предложений/абзацев, автонумерация 1/N, корректный учёт CJK и полноширинных символов, URL считаются за 23 символа, и карта в стиле X со счётчиком символов.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=twitter-thread-splitter",
"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": "twitter-thread-splitter",
"arguments": {
"text": "Designing for latency is harder than designing for throughput. Throughput rewards batching and parallelism. Latency punishes them, because every extra hop adds queuing delay. The fastest request is the one you never make. Cache aggressively, but measure the cache hit ratio — a 50% hit rate barely helps P99. Finally, budget for failure: retries and timeouts are themselves latency sources, and they compound under load.",
"limit": 280,
"mode": "sentence",
"numbering": "slash",
"separator": "—",
"keepBreaks": true,
"reserveUrl": true
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]