image_to_pdf
Converts a tall screenshot into a paginated PDF, splitting at clean rows to prevent cutting through text or other content.
Instructions
Paginate an existing long screenshot into a PDF, cutting at clean rows.
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": {
"image_path": "<image_path>"
},
"name": "image_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Optional source URL to stamp on each page. | |
| paper | No | PDF paper size. | letter |
| stamp | No | Stamp style. | none |
| image_path | Yes | Path of an existing tall image (PNG/JPEG). | |
| date_format | No | date | datetime | iso | none | strftime pattern | datetime |
| smart_split | No | Avoid cutting through content (pixel-based). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |