Text Processing
Extract even-numbered lines from text content with support for various indexing methods and custom criteria
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/even-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","countingMethod":"1-based","startIndex":2,"trimLines":false,"includeEmptyLines":false,"preserveLineNumbers":true,"showLineNumbers":true,"outputFormat":"numbered"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/even-line-extractor| Name | Type | Required | Description |
|---|---|---|---|
| textInput | textarea | Yes | — |
| countingMethod | select | Yes | — |
| startIndex | number | No | — |
| trimLines | checkbox | No | — |
| includeEmptyLines | checkbox | No | — |
| preserveLineNumbers |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-even-line-extractor": {
"name": "even-line-extractor",
"description": "Extract even-numbered lines from text content with support for various indexing methods and custom criteria",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=even-line-extractor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "even-line-extractor",
"arguments": {
"textInput": "Enter or paste your text content here...\nLine 1\nLine 2\nLine 3\nLine 4\nLine 5\nLine 6",
"countingMethod": "1-based",
"startIndex": 2,
"trimLines": false,
"includeEmptyLines": false,
"preserveLineNumbers": true,
"showLineNumbers": true,
"outputFormat": "numbered"
}
}
}Questions or issues? Contact [email protected]
| checkbox |
| No |
| — |
| showLineNumbers | checkbox | No | — |
| outputFormat | select | Yes | — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}