scan
Capture documents from a networked scanner, choose feeder or flatbed, and return a saved file plus preview images; optionally upload the full-quality file for a temporary download link.
Instructions
Scan a document. Returns the saved file name and watermarked, low-quality preview images.
source is REQUIRED; ask the user where the pages are if you don't know. Use one of these
names, or a source name exactly as list_scan_sources shows it (also for mode):
adf pages stacked in the document feeder: scans every page in it.
adf_duplex feeder, both sides of each page (if the scanner supports it).
flatbed ONE page lying on the glass under the lid.
Some scanners take paper from the feeder whenever it holds any, even if flatbed is
chosen, so whenever pages are in the feeder use adf.
upload=True also uploads the full-quality file and returns a download link valid
for 5 minutes (only ask for it when the actual file is needed, e.g. to save or send it).
The saved file can be reprinted with print_scan.
name: optional file name stem, e.g. "lease-signed".
Tool names: source adf|flatbed|adf_duplex, mode color|gray|bw.
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": {
"source": "<source>"
},
"name": "scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | gray | |
| name | No | ||
| paper | No | letter | |
| format | No | ||
| source | Yes | ||
| upload | No | ||
| resolution | No |