Document Tools
Создает контактные листы с миниатюрами, именами файлов и EXIF
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'http://127.0.0.1:3003/api/upload/presign/pdf-photo-contact-sheet' \
-H 'Content-Type: application/json' \
-d '{"filename":"imageFiles.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'http://127.0.0.1:3003/ru/api/tools/pdf-photo-contact-sheet' \
-F 'title=Contact Sheet - Sample JPG Set' \
-F 'subtitle=Generated by consolidated script' \
-F 'imageFiles=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'columns=4' \
-F 'rows=3' \
-F 'fitMode=cover' \
-F 'showFileName=true' \
-F 'includeExif=true' \
-F 'pageSize=A4' \
-F 'landscape=true' \
-F 'waitUntil=networkidle0' \
-F 'waitTime=800'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST http://127.0.0.1:3003/ru/api/tools/pdf-photo-contact-sheet| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| title | text | Да | — |
| subtitle | text | Нет | — |
| imageFiles | fileнужна загрузка | Да | — |
| columns | number | Нет | — |
| rows | number | Нет | — |
| fitMode | select | Нет | — |
| showFileName | checkbox | Нет | — |
| includeExif | checkbox | Нет | — |
| pageSize | select | Нет | — |
| landscape | 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)"
}Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-pdf-photo-contact-sheet": {
"name": "pdf-photo-contact-sheet",
"description": "Создает контактные листы с миниатюрами, именами файлов и EXIF",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=pdf-photo-contact-sheet",
"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-photo-contact-sheet",
"arguments": {
"title": "Contact Sheet - Sample JPG Set",
"subtitle": "Generated by consolidated script",
"imageFiles": "https://example.com/file.ext",
"columns": 4,
"rows": 3,
"fitMode": "cover",
"showFileName": true,
"includeExif": true,
"pageSize": "A4",
"landscape": true,
"waitUntil": "networkidle0",
"waitTime": 800
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]