Scan a document
scanCapture pages from a flatbed glass or document feeder, save them as PDF or JPEG, and return the saved files plus a first-page image for reading.
Instructions
Scan from the glass or document feeder of a scanner or multifunction printer and save it, by default as PDF in /root/Documents/Scans. Ask the user to place the page first. Returns the saved files and an image of the first page so you can read it. Network scanners (AirScan, eSCL, Mopria) and USB scanners through Windows both work.
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": "scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Default 300; 200 is enough for text, 600 for photos | |
| color | No | Default color | |
| format | No | Default pdf | |
| source | No | auto (default): feeder when it holds pages, else glass | |
| scanner | No | Printer or scanner name, id or IP. Omit: the server picks. | |
| show_image | No | Return the first page as an image. Default true | |
| output_file | No | Where to save. Extra feeder pages get -2, -3 added |