Elysia Tools Docs
PT
Idioma
ZHESPTRUFRDEEN
Voltar ao site
Explorar ferramentas

Text Processing

Divisor de thread do Twitter / X

Cole um texto longo e divida-o em um thread X numerado que respeita o limite de 280 caracteres. Divide em fronteiras de palavra/frase/parágrafo, adiciona numeração 1/N, pondera corretamente CJK e caracteres de largura total, conta URLs como 23 caracteres e mostra um cartão estilo X com medidor.

html· Resultado HTMLAbrir ferramenta

Início rápido

Chame esta ferramenta a partir do seu código em três idiomas.

cURL
curl -X POST 'https://api.elysiatools.com/pt/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}'

© 2026 Elysia Tools. Documentação para desenvolvedores.

Voltar ao siteExplorar ferramentas

Referência da API

Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.

Endpoint

HTTP
POST https://api.elysiatools.com/pt/api/tools/twitter-thread-splitter

Parâmetros

NomeTipoObrigatórioDescrição
texttextareaSimThe text you want to split into an X thread.
limitnumberSimCharacter budget per tweet. 280 is the standard X limit (CJK and URLs are weighted per X rules).
modeselectNão—
numberingselectNão—
separatortextNãoText placed between content and the numbering tag (e.g. — or a newline).
keepBreakscheckboxNão—
reserveUrlcheckboxNãoWhen on, URLs count as 23 characters (X behaviour). When off, URLs count by their raw length.

Formato de resposta

Resultado HTML

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

Integração MCP

Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.

Configuração do servidor

Adicione este bloco à configuração do seu cliente MCP:

mcp.json
{
  "mcpServers": {
    "elysiatools-twitter-thread-splitter": {
      "name": "twitter-thread-splitter",
      "description": "Cole um texto longo e divida-o em um thread X numerado que respeita o limite de 280 caracteres. Divide em fronteiras de palavra/frase/parágrafo, adiciona numeração 1/N, pondera corretamente CJK e caracteres de largura total, conta URLs como 23 caracteres e mostra um cartão estilo X com medidor.",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=twitter-thread-splitter",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

Listar ferramentas disponíveis

Após conectar ao endpoint SSE, liste as ferramentas expostas:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Chamar esta ferramenta

Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:

tools/call
{
  "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
}
  }
}
Encadeie várias ferramentas em uma sessão com uma lista toolId separada por vírgulas, p. ex. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (máx. 20).

Dúvidas ou problemas? Contate [email protected]

Explorar ferramentas
Abrir ferramenta