Split or extract PDF pages
pdf_splitKeep only the selected pages of a PDF (e.g. ranges "1-3,5" or "2-4,7-9") and return the resulting document. Use this when the user wants part of a PDF or pages extracted.
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>",
"ranges": "<ranges>"
},
"name": "pdf_split"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Base64-encoded file bytes (no data: URL prefix). | |
| ranges | Yes | Page ranges to keep, e.g. "1-3,5". |