Text Processing
Extrae líneas de texto a intervalos regulares con patrones de salto y extracción personalizables. Perfecto para muestrear cada N-ésima línea o extraer múltiples líneas con espacios.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/step-line-extractor' \
-H 'Content-Type: application/json' \
-d '{"textInput":"Enter or paste your text content here...\nLine 1\nLine 2\nLine 3\nLine 4\nLine 5\nLine 6\nLine 7\nLine 8\nLine 9\nLine 10","skipCount":4,"extractCount":1,"startIndex":1,"trimLines":false,"includeEmptyLines":false,"preserveLineNumbers":true,"showLineNumbers":true,"outputFormat":"numbered"}'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/step-line-extractor| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| textInput | textarea | Sí | — |
| skipCount | number | No | — |
| extractCount | number | No | — |
| startIndex | number | No | — |
| trimLines | checkbox | No | — |
| includeEmptyLines |
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-step-line-extractor": {
"name": "step-line-extractor",
"description": "Extrae líneas de texto a intervalos regulares con patrones de salto y extracción personalizables. Perfecto para muestrear cada N-ésima línea o extraer múltiples líneas con espacios.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=step-line-extractor",
"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": "step-line-extractor",
"arguments": {
"textInput": "Enter or paste your text content here...\nLine 1\nLine 2\nLine 3\nLine 4\nLine 5\nLine 6\nLine 7\nLine 8\nLine 9\nLine 10",
"skipCount": 4,
"extractCount": 1,
"startIndex": 1,
"trimLines": false,
"includeEmptyLines": false,
"preserveLineNumbers": true,
"showLineNumbers": true,
"outputFormat": "numbered"
}
}
}| checkbox |
| No |
| — |
| preserveLineNumbers | checkbox | No | — |
| showLineNumbers | checkbox | No | — |
| outputFormat | select | Sí | — |
Resultado de texto
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}¿Dudas o problemas? Contacta con [email protected]