Extract PDF attachments
extract_attachmentsExtracts embedded attachments from a PDF file via URL, returning each attachment as a separate downloadable file. Use it to retrieve files bundled inside PDFs, including password-protected documents.
Instructions
Extracts attachments from a source PDF file. Ref: https://developer.pdf.co/api/pdf-extract-attachments.md
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_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to the source PDF file. | |
| api_key | No | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) | |
| password | No | Password of PDF file. (Optional) | |
| profiles | No | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) | |
| expiration | No | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
| httppassword | No | HTTP auth password if required to access source url. (Optional) | |
| httpusername | No | HTTP auth user name if required to access source url. (Optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tips | No | ||
| status | Yes | ||
| content | Yes | ||
| credits_used | No | ||
| credits_remaining | No |