Text Processing
Pega un texto largo y divídelo en un hilo numerado de X que respeta el límite de 280 caracteres. Divide por límites de palabra/oración/párrafo, añade numeración 1/N, pondera correctamente CJK y caracteres de ancho completo, cuenta las URLs como 23 caracteres y muestra una tarjeta de estilo X con medidor de caracteres.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/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}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/twitter-thread-splitter| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| text | textarea | Sí | The text you want to split into an X thread. |
| limit | number | Sí | Character budget per tweet. 280 is the standard X limit (CJK and URLs are weighted per X rules). |
| mode | select | No | — |
| numbering | select | No | — |
| separator | text | No | Text placed between content and the numbering tag (e.g. — or a newline). |
| keepBreaks | checkbox | No | — |
| reserveUrl | checkbox | No | When on, URLs count as 23 characters (X behaviour). When off, URLs count by their raw length. |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-twitter-thread-splitter": {
"name": "twitter-thread-splitter",
"description": "Pega un texto largo y divídelo en un hilo numerado de X que respeta el límite de 280 caracteres. Divide por límites de palabra/oración/párrafo, añade numeración 1/N, pondera correctamente CJK y caracteres de ancho completo, cuenta las URLs como 23 caracteres y muestra una tarjeta de estilo X con medidor de caracteres.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=twitter-thread-splitter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"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
}
}
}¿Dudas o problemas? Contacta con [email protected]