Text Processing
Извлекает строки из текста через регулярные интервалы с настраиваемыми паттернами пропуска и извлечения. Идеально для выборки каждой N-й строки или извлечения нескольких строк с пропусками.
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/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"}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/step-line-extractor| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| textInput | textarea | Да | — |
| skipCount | number | Нет | — |
| extractCount | number | Нет | — |
| startIndex | number | Нет | — |
| trimLines | checkbox | Нет | — |
| includeEmptyLines |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-step-line-extractor": {
"name": "step-line-extractor",
"description": "Извлекает строки из текста через регулярные интервалы с настраиваемыми паттернами пропуска и извлечения. Идеально для выборки каждой N-й строки или извлечения нескольких строк с пропусками.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=step-line-extractor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"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 |
| Нет |
| — |
| preserveLineNumbers | checkbox | Нет | — |
| showLineNumbers | checkbox | Нет | — |
| outputFormat | select | Да | — |
Текстовый результат
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Вопросы или проблемы? Свяжитесь с [email protected]