Text Processing
Collez un long texte et découpez-le en un thread X numéroté qui respecte la limite de 280 caractères. Découpe aux frontières mot/phrase/paragraphe, ajoute la numérotation 1/N, pèse correctement CJK et caractères pleine chasse, compte les URL comme 23 caractères et affiche une carte de style X avec un compteur.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/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}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/twitter-thread-splitter| Nom | Type | Requis | Description |
|---|---|---|---|
| text | textarea | Oui | The text you want to split into an X thread. |
| limit | number | Oui | Character budget per tweet. 280 is the standard X limit (CJK and URLs are weighted per X rules). |
| mode | select | Non | — |
| numbering | select | Non | — |
| separator | text | Non | Text placed between content and the numbering tag (e.g. — or a newline). |
| keepBreaks | checkbox | Non | — |
| reserveUrl | checkbox | Non | When on, URLs count as 23 characters (X behaviour). When off, URLs count by their raw length. |
Résultat HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-twitter-thread-splitter": {
"name": "twitter-thread-splitter",
"description": "Collez un long texte et découpez-le en un thread X numéroté qui respecte la limite de 280 caractères. Découpe aux frontières mot/phrase/paragraphe, ajoute la numérotation 1/N, pèse correctement CJK et caractères pleine chasse, compte les URL comme 23 caractères et affiche une carte de style X avec un compteur.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=twitter-thread-splitter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"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
}
}
}Des questions ou un problème ? Contactez [email protected]