extract_images
Extract embedded images such as photos, scans, and logos from PDF files and save each one as a separate file in its original format, with optional page selection and output directory control.
Instructions
Save the images embedded in a PDF (photos, scans, logos) as files named p., in their original format where possible. Lists the files written. Vector drawings and text are not images and are not extracted.
output_dir: default _images next to the input. Created if missing. max_images: safety cap; the call fails (writing nothing) if more are found.
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": {
"path": "<path>"
},
"name": "extract_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No | ||
| password | No | ||
| overwrite | No | ||
| max_images | No | ||
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |