Developer Tools
Извлекает только выбранный диапазон страниц PDF и экспортирует его в Markdown, JSON или текст
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/pdf-page-range-extractor' \
-F 'file=@/path/to/pdfFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/ru/api/tools/pdf-page-range-extractor' \
-F 'pdfFile=/public/samples/pdf/financial-report-example1.pdf' \
-F 'exportFormat=markdown' \
-F 'pages=1-2' \
-F 'useStructTree=true' \
-F 'keepLineBreaks=true' \
-F 'includePageSeparators=true'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/pdf-page-range-extractor| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| pdfFile | fileнужна загрузка | Да | — |
| exportFormat | select | Нет | — |
| pages | text | Да | — |
| useStructTree | checkbox | Нет | — |
| keepLineBreaks | checkbox | Нет |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-pdf-page-range-extractor": {
"name": "pdf-page-range-extractor",
"description": "Извлекает только выбранный диапазон страниц PDF и экспортирует его в Markdown, JSON или текст",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-page-range-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": "pdf-page-range-extractor",
"arguments": {
"pdfFile": "/public/samples/pdf/financial-report-example1.pdf",
"exportFormat": "markdown",
"pages": "1-2",
"useStructTree": true,
"keepLineBreaks": true,
"includePageSeparators": true
}
}
}| — |
| includePageSeparators | checkbox | Нет | — |
Файловый результат
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Вопросы или проблемы? Свяжитесь с [email protected]