extract_pdf_text
Download a PDF and extract its text content for reading course handbooks, academic calendars, or prospectuses found during crawling.
Instructions
Download a PDF and extract its text content using pdfplumber.
Useful for reading course handbooks, academic calendars, prospectuses,
and other PDF documents discovered during crawling.
Args:
url: Direct URL to a PDF file
max_size_mb: Skip PDFs larger than this (default 5 MB)
max_chars: Cap extracted text length (default 30000 chars)
Returns:
Dictionary with extracted text, page count, and character count.
Returns success=False if the PDF is too large, image-based, or unreadable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "extract_pdf_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| max_chars | No | ||
| max_size_mb | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |