Edit pages
edit_pagesChange a PDF's pages (counted from 1): delete pages, keep only some pages, put pages in a new order (pages left out are dropped), or rotate all pages or a range.
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": {
"operation": "<operation>"
},
"name": "edit_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | A file the person attached in ChatGPT (filled in by ChatGPT). | |
| angle | No | ||
| pages | No | For delete and keep: the pages. For reorder: every page to keep, in the new order. | |
| file_id | No | A FynePDF file_id from upload_file, import_file_from_url or an earlier tool. | |
| file_url | No | A public link to the file. | |
| operation | Yes | ||
| page_range | No | For rotate: "all" (default), a page like "4" or a range like "2-7". | |
| library_file_id | No | A file from the person's FynePDF Library (from list_library_files). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | ||
| files | Yes | ||
| steps | Yes | ||
| job_id | Yes | ||
| status | Yes | ||
| credits | Yes | ||
| message | Yes |