crop_pdf
Remove unwanted margins from PDF pages. Set crop values for top, left, right, and bottom in points.
Instructions
Crop pages by specifying margins to remove from each side (in points).
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": {
"file": "<file>"
},
"name": "crop_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Points to crop from top (default 0) | |
| file | Yes | Absolute path to the PDF file | |
| left | No | Points to crop from left (default 0) | |
| right | No | Points to crop from right (default 0) | |
| bottom | No | Points to crop from bottom (default 0) | |
| output_name | No | Output file path (defaults to same dir with suffix) |