pdf_crop
Crop PDF pages by specifying coordinates and dimensions to set the visible area. Trims margins or isolates a region for selected or all pages.
Instructions
Crop pages by setting the visible area (crop box). Trims margins or isolates a region. Coordinates are in points from bottom-left.
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": {
"filePath": "<filePath>",
"outputPath": "<outputPath>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "pdf_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Left edge of crop area (points from left) | |
| y | Yes | Bottom edge of crop area (points from bottom) | |
| pages | No | Pages to crop (1-indexed). Omit for all pages. | |
| width | Yes | Width of crop area in points | |
| height | Yes | Height of crop area in points | |
| filePath | Yes | PDF file path | |
| outputPath | Yes | Output path |