Images to PDF
images_to_pdfCombine JPG or PNG files into one PDF, with one page per image in the order provided, each page sized to its image and no re-compression.
Instructions
Make one PDF from JPG or PNG images, one page per image in the order given, each page sized to its image (no re-compression). Returns the saved path and page count; the inputs are not changed.
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 | JPG or PNG paths, in page order. | |
| output | No | Where to save the result. Defaults to a new file next to the input. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | Anything the output does not carry over from the input. | |
| summary | Yes | One line describing the result. | |
| written | Yes | Paths of the files written, in order. |