Text Processing
Alinha rapidamente o texto à esquerda
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/api/tools/text-left-aligner' \
-H 'Content-Type: application/json' \
-d '{"textInput":"Enter text to align...","targetLength":0,"fillChar":" ","trimSpaces":false,"autoDetectLength":true}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/text-left-aligner| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| textInput | textarea | Sim | — |
| targetLength | number | Não | — |
| fillChar | text | Sim | — |
| trimSpaces | checkbox | Não | — |
| autoDetectLength | checkbox | Não | — |
Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-text-left-aligner": {
"name": "text-left-aligner",
"description": "Alinha rapidamente o texto à esquerda",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-left-aligner",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "text-left-aligner",
"arguments": {
"textInput": "Enter text to align...",
"targetLength": 0,
"fillChar": " ",
"trimSpaces": false,
"autoDetectLength": true
}
}
}Dúvidas ou problemas? Contate [email protected]
Resultado de texto
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}