Edit a PDF by instruction
smart_editDescribe the change ("remove the blank pages, number the rest and make it PDF/A"): FynePDF plans the steps from its actions, checks the plan, and runs it. With run false it only returns the plan.
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": {
"instruction": "<instruction>"
},
"name": "smart_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | Default true. | |
| file | No | A file the person attached in ChatGPT (filled in by ChatGPT). | |
| 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. | |
| instruction | Yes | ||
| library_file_id | No | A file from the person's FynePDF Library (from list_library_files). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | ||
| plan | Yes | ||
| files | No | ||
| steps | No | ||
| job_id | No | ||
| status | No | ||
| credits | No | ||
| message | Yes | ||
| explanation | Yes |