pdf_split
Extract selected pages from a PDF into a new file, preserving form fields on included pages and removing fields from omitted pages. Optionally flatten field values to static content.
Instructions
Extract specific pages from a PDF into a new file. AcroForm fields on the extracted pages are preserved; fields on omitted pages are dropped. Set flatten:true to bake field values into static content.
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>",
"pages": "<pages>",
"outputPath": "<outputPath>"
},
"name": "pdf_split"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the source PDF file | |
| pages | Yes | Page range to extract, e.g. '1-5' or '1,3,5' | |
| outputPath | Yes | Absolute path for the output PDF | |
| flatten | No | Flatten the extracted form: bake field values into static content and remove interactivity. Defaults to false. |