Document Tools
Gera checklist PDF com caixas simuladas
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/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}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/pdf-checklist-form| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| title | text | Sim | — |
| subtitle | text | Não | — |
| checklistItems | textarea | Não | — |
| checkedIndexes | text | Não | — |
| columns | select | Não | — |
| showIndex |
Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-pdf-checklist-form": {
"name": "pdf-checklist-form",
"description": "Gera checklist PDF com caixas simuladas",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-checklist-form",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"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 |
| Não |
| — |
| showFooter | checkbox | Não | — |
| pageSize | select | Não | — |
| landscape | checkbox | Não | — |
| printBackground | checkbox | Não | — |
| waitUntil | select | Não | — |
| waitTime | number | Não | — |
Resultado de arquivo
{
"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)"
}Dúvidas ou problemas? Contate [email protected]