Document Tools
Auto-insert internal jump links for mentions like see Appendix X / 见附录X
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/pdf-appendix-linker' \
-H 'Content-Type: application/json' \
-d '{"title":"Project Brief","documentText":"Overview\nSee Appendix A for policy details. See Appendix B for performance data.\n\nAppendix A\nPolicy details.\n\nAppendix B\nPerformance data table.","pageSize":"A4","landscape":false,"fontSize":12,"lineHeight":1.45,"margin":40}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/pdf-appendix-linker| Name | Type | Required | Description |
|---|---|---|---|
| title | text | Yes | — |
| documentText | textarea | Yes | — |
| pageSize | select | No | — |
| landscape | checkbox | No | — |
| fontSize | number | No | — |
| lineHeight |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-pdf-appendix-linker": {
"name": "pdf-appendix-linker",
"description": "Auto-insert internal jump links for mentions like see Appendix X / 见附录X",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-appendix-linker",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pdf-appendix-linker",
"arguments": {
"title": "Project Brief",
"documentText": "Overview\nSee Appendix A for policy details. See Appendix B for performance data.\n\nAppendix A\nPolicy details.\n\nAppendix B\nPerformance data table.",
"pageSize": "A4",
"landscape": false,
"fontSize": 12,
"lineHeight": 1.45,
"margin": 40
}
}
}Questions or issues? Contact [email protected]
| number |
| No |
| — |
| margin | number | No | — |
File result
{
"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)"
}