Developer Tools
Compare raw PDF draw order against XY-Cut++ reading order to spot multi-column and layout-related extraction issues
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/pdf-reading-order-debugger' \
-F 'file=@/path/to/pdfFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/pdf-reading-order-debugger' \
-F 'pdfFile=/public/samples/pdf/ebook-navigation-example1.pdf' \
-F 'useStructTree=false' \
-F 'includeHeaderFooter=false' \
-F 'pages=1-4'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-reading-order-debugger| Name | Type | Required | Description |
|---|---|---|---|
| pdfFile | fileupload required | Yes | — |
| useStructTree | checkbox | No | — |
| includeHeaderFooter | checkbox | No | — |
| pages | text | No | — |
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-reading-order-debugger": {
"name": "pdf-reading-order-debugger",
"description": "Compare raw PDF draw order against XY-Cut++ reading order to spot multi-column and layout-related extraction issues",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-reading-order-debugger",
"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-reading-order-debugger",
"arguments": {
"pdfFile": "/public/samples/pdf/ebook-navigation-example1.pdf",
"useStructTree": false,
"includeHeaderFooter": false,
"pages": "1-4"
}
}
}HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]