Preview a scan
preview_scanShow what FixMyScan will do before converting: before-and-after images of 3 pages of the user's own book. Use it when the user wants to see the result first. Give the same source as fix_scan, or the scan_id of a book not yet converted. The first call returns at once; call again with the scan_id after about ten seconds for the images. To convert after the preview, call fix_scan with upload_id set to the scan_id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "preview_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | A PDF or DjVu file the user attached in this chat. | |
| output | No | bw: sharp black and white, best on e-ink. grey: gentle greyscale. | bw |
| scan_id | No | The scan_id fix_scan or list_my_scans gave. | |
| upload_id | No | The upload_id from create_upload_link, once the user has uploaded the file. | |
| source_url | No | A public https link to the PDF or DjVu file. | |
| trim_margins | No | Crop each page to its text block. Covers and picture pages stay whole. | |
| split_spreads | No | Split scans of two facing pages into single pages. |