Content is loading…
Extract text from any PDF URL page by page, with document metadata.
pdf_extract_text#pdf#text extraction#pdf parser#document text#pdfjsDownloads a PDF from a specified url and extracts its plain text content page by page. Accepts maxPages to limit the scope and includeMetadata to toggle document properties. Returns the text, total page count, and metadata; note that image-only scans will return empty results.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | required | URL of the PDF file to extract text from. Max 20 MB. |
maxPages | number | optional | Maximum number of pages to extract. Default 50. Set higher for big docs (caps at 500). |
includeMetadata | boolean | optional | Include the PDF document info (title, author, subject, etc.) in the response. Default true. |
{
"url": "https://example.com/report.pdf",
"maxPages": 5
}curl -X POST https://toolsy.my/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pdf_extract_text",
"arguments": {
"url": "https://example.com/report.pdf",
"maxPages": 5
}
}
}'Generate a free API key or set up an OAuth connector for Claude.ai.