PDF 轉圖
pdf_pagesConvert specified PDF pages to JPG or PNG files saved locally, returning each image's path, dimensions, and size for sharing contracts, statements, or catalogs in chat and presentations.
Instructions
把 PDF 指定頁轉成 JPG/PNG 圖檔存在本機(謄本、合約、型錄貼 LINE 或簡報用),回傳每張圖的路徑、尺寸、大小。檔案不會上傳。
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>"
},
"name": "pdf_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | 解析度,貼 LINE 150、列印 300 | |
| pages | No | 頁碼範圍,例如 1-3,5,8-;留空=全部(一次最多 200 頁) | |
| format | No | 輸出格式 | jpg |
| out_dir | No | 輸出資料夾;留空=PDF 旁邊的「檔名_pages」資料夾。不會覆蓋既有檔案 | |
| quality | No | JPG 品質 | |
| password | No | PDF 密碼(有加密才需要) | |
| pdf_path | Yes | 本機 PDF 路徑 |