Document Tools
Marcadores de Esquema PDF
Crea marcadores PDF basados en estructura de capitulos
file· Resultado de archivoAbrir herramienta
Inicio rápido
Llama a esta herramienta desde tu código en tres lenguajes.
cURL
curl -X POST 'https://api.elysiatools.com/es/api/tools/pdf-outline-bookmarks' \
-H 'Content-Type: application/json' \
-d '{"title":"Engineering Handbook","documentText":"# Engineering Handbook\nOverview for team onboarding.\n\n## Chapter 1: Setup\nInstall dependencies and run checks.\n\n### Chapter 1.1: Local Run\nUse npm run dev.\n\n## Chapter 2: Deployment\nDeploy from CI pipeline.\n\n### Chapter 2.1: Rollback\nRollback if smoke tests fail.","pageSize":"A4","landscape":false,"fontSize":12,"lineHeight":1.5,"margin":42}'Referencia de la API
Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
Endpoint
HTTP
POST https://api.elysiatools.com/es/api/tools/pdf-outline-bookmarksParámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| title | text | Sí | — |
| documentText | textarea | Sí | — |
| pageSize | select | No | — |
| landscape | checkbox | No | — |
| fontSize | number | No | — |
| lineHeight |
Integración MCP
Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Configuración del servidor
Añade este bloque a la configuración de tu cliente MCP:
mcp.json
{
"mcpServers": {
"elysiatools-pdf-outline-bookmarks": {
"name": "pdf-outline-bookmarks",
"description": "Crea marcadores PDF basados en estructura de capitulos",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-outline-bookmarks",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Listar herramientas disponibles
Tras conectar al endpoint SSE, lista las herramientas expuestas:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Llamar a esta herramienta
Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pdf-outline-bookmarks",
"arguments": {
"title": "Engineering Handbook",
"documentText": "# Engineering Handbook\nOverview for team onboarding.\n\n## Chapter 1: Setup\nInstall dependencies and run checks.\n\n### Chapter 1.1: Local Run\nUse npm run dev.\n\n## Chapter 2: Deployment\nDeploy from CI pipeline.\n\n### Chapter 2.1: Rollback\nRollback if smoke tests fail.",
"pageSize": "A4",
"landscape": false,
"fontSize": 12,
"lineHeight": 1.5,
"margin": 42
}
}
}