Document Tools
Имитирует штампы REVIEWED/CONFIDENTIAL на страницах PDF
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/pdf-stamp-annotations' \
-F 'file=@/path/to/inputPdf.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/ru/api/tools/pdf-stamp-annotations' \
-F 'inputPdf=/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-11-source-2pages.pdf' \
-F 'scope=all' \
-F 'customPages=2,4,6-8' \
-F 'textPreset=reviewed' \
-F 'customText=LEGAL HOLD' \
-F 'position=top-right' \
-F 'style=outline' \
-F 'stampColor=#C73131' \
-F 'rotateDeg=-18' \
-F 'opacity=0.74' \
-F 'margin=28' \
-F 'withDate=true'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/pdf-stamp-annotations| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| inputPdf | fileнужна загрузка | Да | — |
| scope | select | Нет | — |
| customPages | text | Нет | — |
| textPreset | select | Нет | — |
| customText | text | Нет | — |
| position | select | Нет | — |
| style | select | Нет | — |
| stampColor | color | Нет | — |
| rotateDeg | number | Нет | — |
| opacity | number | Нет | — |
| margin | number | Нет | — |
| withDate | 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)"
}Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-pdf-stamp-annotations": {
"name": "pdf-stamp-annotations",
"description": "Имитирует штампы REVIEWED/CONFIDENTIAL на страницах PDF",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-stamp-annotations",
"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-stamp-annotations",
"arguments": {
"inputPdf": "/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-11-source-2pages.pdf",
"scope": "all",
"customPages": "2,4,6-8",
"textPreset": "reviewed",
"customText": "LEGAL HOLD",
"position": "top-right",
"style": "outline",
"stampColor": "#C73131",
"rotateDeg": -18,
"opacity": 0.74,
"margin": 28,
"withDate": true
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]