process_document
Extract text from PDF documents and HTML URLs, returning structured sections, metadata, and word count.
Instructions
Use this when you need to extract text from a PDF URL or file — e.g. research papers, contracts, reports. Also handles HTML URLs. Returns structured sections, metadata, and word count. Example: process_document({source: "https://example.com/report.pdf", sourceType: "pdf_url"})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Document source - URL or file path | |
| options | No | Additional processing options (maxPages, pageRange:{start,end}, extractText, extractMetadata, password, outputFormat, ...) | |
| sourceType | No | Type of document source |