Read PDF
read_pdfPDF to Markdown, pages e.g. 1-3 (default first 30). Sponsor pages are omitted and listed in adPages. Use only if you cannot run pdftotext: output is about pdftotext size, no token saving.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http or https PDF, up to 20 MB. At most 30 pages are read. | |
| pages | No | Pages to read, such as 1-3 or 4. At most 30 pages. Default is the first 30. When the response includes next_page, pass pages starting there. | |
| max_sats | No | Most this call may charge. Minimum 1. A higher total charges nothing. | |
| max_chars | No | Optional cap on the Markdown length. The maximum is 200000 characters. (minimum 500). | |
| include_text | No | Off by default. Set true to also include the plain text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | approval_required, limit_exceeded, or insufficient_balance when the call stopped. | |
| which | No | Which limit: per_call, per_day, per_session, per_hour_buys, per_minute_calls, or per_minute_sats. | |
| content | No | Delivered text. Empty when the call did not deliver. | |
| message | No | ||
| order_id | No | Order id after a charge. Null when nothing was charged. | |
| truncated | No | True when the source was longer than content, or the page itself was cut. | |
| total_cost | No | All-in price string. | |
| approval_url | No | Page where the person approves this exact price. | |
| balance_sats | No | Credit balance after the call, or null when it was not read. | |
| sats_charged | No | Sats charged for this call. 0 when nothing was charged. | |
| total_length | No | Characters before truncation. Larger than content_length when truncated is true. | |
| content_length | No | Characters in content. |