AI Tools
Extrae texto limpio de PDF para resumen, traduccion, embedding y otros flujos con LLM
Llama a esta herramienta desde tu código en tres lenguajes.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/pdf-to-clean-text-for-llm' \
-F 'file=@/path/to/pdfFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/es/api/tools/pdf-to-clean-text-for-llm' \
-F 'pdfFile=/public/samples/pdf/financial-report-example1.pdf' \
-F 'keepLineBreaks=false' \
-F 'includeHeaderFooter=false' \
-F 'useStructTree=true' \
-F 'sanitizeSensitiveData=true' \
-F 'includePageSeparators=false' \
-F 'pages='Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/pdf-to-clean-text-for-llm| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| pdfFile | filesubida requerida | Sí | — |
| keepLineBreaks | checkbox | No | — |
| includeHeaderFooter | checkbox | No | — |
| useStructTree | checkbox | No | — |
| sanitizeSensitiveData | checkbox | No | — |
| includePageSeparators | checkbox | No | — |
| pages | text | No | — |
Resultado de archivo
{
"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)"
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-pdf-to-clean-text-for-llm": {
"name": "pdf-to-clean-text-for-llm",
"description": "Extrae texto limpio de PDF para resumen, traduccion, embedding y otros flujos con LLM",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-to-clean-text-for-llm",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pdf-to-clean-text-for-llm",
"arguments": {
"pdfFile": "/public/samples/pdf/financial-report-example1.pdf",
"keepLineBreaks": false,
"includeHeaderFooter": false,
"useStructTree": true,
"sanitizeSensitiveData": true,
"includePageSeparators": false,
"pages": ""
}
}
}¿Dudas o problemas? Contacta con [email protected]