Export a Keynote, Pages or Numbers file
iwork_exportConvert Keynote, Pages, and Numbers documents into PDF, Office, EPUB, CSV, image, or video formats; the input extension determines the source app.
Instructions
Export an iWork document to another format. The app is chosen from the file extension. Keynote: pdf, pptx, mov, images (images writes one file per slide into the output folder; mov writes an H.264 .m4v at 1080p height). Pages: pdf, docx, epub, txt. Numbers: pdf, xlsx, csv (csv of a multi-table file produces a folder with one CSV per table).
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": {
"input": "<input>",
"format": "<format>",
"output": "<output>"
},
"name": "iwork_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to a .key, .pages or .numbers file | |
| format | Yes | ||
| output | Yes | Output file path (a folder for Keynote images) | |
| overwrite | No | ||
| imageFormat | No | For Keynote images only |