Pdf Extract Pages
pdf_extract_pagesUse this to extract a requested page range from a selected local PDF into an output PDF. Validate page numbers and output path; source pages remain unchanged.
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": {
"device": "<device>",
"path": "<path>",
"pages": "<pages>",
"output": "<output>"
},
"name": "pdf_extract_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Permitted local filesystem path. | |
| pages | Yes | Page list/ranges such as 1-3,5. | |
| device | Yes | ReMCP device id returned by list_devices. Required for every device operation. | |
| output | Yes | Optional permitted output path; when omitted the tool may update the input according to its action. | |
| pattern | No | Output filename pattern where supported. | |
| output_dir | No | Permitted directory for generated output files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | PDF action structured result for pdf_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload. | |
| text | Yes | Concise human-readable result of the tool call. |