Images to PDF
images_to_pdfCombine 1 to 20 images (JPG, PNG, WEBP, GIF, BMP) into one PDF, one image per page, in the order given. JPG and PNG are embedded at full resolution.
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": {
"files": "<files>"
},
"name": "images_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | The images, in page order. | |
| margin | No | none | |
| page_size | No | "fit" = each page is the size of its image. | fit |
| orientation | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | Facts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf). | |
| note | No | Anything the user should know about the result. | |
| text | No | Extracted text (pdf_to_text, ocr_pdf). | |
| files | Yes | Result files. Download them before expires_at; pass file_id to another tool to chain. |