Document Tools
Sozdaet PDF chek-list s psevdogalockami
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/pdf-checklist-form' \
-H 'Content-Type: application/json' \
-d '{"title":"Site Inspection Checklist","subtitle":"Week 6 Review","checklistItems":"[x] Check safety signs\n[ ] Verify extinguisher\n[ ] Confirm exits\n[ ] Archive report","checkedIndexes":"2","columns":"1","showIndex":true,"showFooter":true,"pageSize":"A4","landscape":false,"printBackground":true,"waitUntil":"networkidle0","waitTime":0}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/pdf-checklist-form| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| title | text | Да | — |
| subtitle | text | Нет | — |
| checklistItems | textarea | Нет | — |
| checkedIndexes | text | Нет | — |
| columns | select | Нет | — |
| showIndex |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-pdf-checklist-form": {
"name": "pdf-checklist-form",
"description": "Sozdaet PDF chek-list s psevdogalockami",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-checklist-form",
"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-checklist-form",
"arguments": {
"title": "Site Inspection Checklist",
"subtitle": "Week 6 Review",
"checklistItems": "[x] Check safety signs\n[ ] Verify extinguisher\n[ ] Confirm exits\n[ ] Archive report",
"checkedIndexes": "2",
"columns": "1",
"showIndex": true,
"showFooter": true,
"pageSize": "A4",
"landscape": false,
"printBackground": true,
"waitUntil": "networkidle0",
"waitTime": 0
}
}
}| checkbox |
| Нет |
| — |
| showFooter | checkbox | Нет | — |
| pageSize | select | Нет | — |
| landscape | checkbox | Нет | — |
| printBackground | checkbox | Нет | — |
| waitUntil | select | Нет | — |
| waitTime | number | Нет | — |
Файловый результат
{
"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]