crop_pages
Crop PDF pages by top, right, bottom, and left margins in points, inches, or millimeters, or reset a page to show its full area again.
Instructions
Crop pages by margins [top, right, bottom, left], measured on the page as it is seen (rotation applied), in unit "pt" (points), "in" or "mm"; all pages or a page spec. reset=true instead shows the whole page again. Cropping only hides the margins: the content stays in the file (use sanitize or redaction to remove it). Needs the owner password if the PDF forbids changes. Signed PDFs are refused.
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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": {
"input_path": "<input_path>"
},
"name": "crop_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | pt | |
| pages | No | ||
| reset | No | ||
| margins | No | ||
| password | No | ||
| overwrite | No | ||
| input_path | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| sizes | Yes | ||
| output | Yes | ||
| password_protected | Yes | ||
| user_password_changed | Yes | ||
| permissions_restricted | Yes |