convert_pdf
Perform essential PDF operations: merge, split, compress, rotate, extract pages, text, or images, add watermarks, and convert to image formats.
Instructions
PDF 专用操作:merge/split/compress/extract_pages/extract_text/extract_images/add_watermark/rotate/to_images。
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": {
"operation": "<operation>"
},
"name": "convert_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | ||
| operation | Yes | PDF 操作类型 | |
| input_path | No | 单个 PDF 路径(merge 以外必填) | |
| input_paths | No | 多个 PDF 路径(仅 merge 需要) | |
| output_path | No | 输出路径 |