extract_image
Extracts a specified embedded image from a PDF as PNG for logo redaction templates, using xref from prior redact_scan.
Instructions
从 PDF 提取指定嵌入图像保存为 PNG(用于制作 logo 脱敏模板:先 redact_scan 拿到图像 xref 清单,再提取可疑 logo 作为模板)。
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": {
"pdf_path": "<pdf_path>",
"xref": "<xref>",
"output_path": "<output_path>"
},
"name": "extract_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xref | Yes | ||
| pdf_path | Yes | ||
| output_path | Yes |