Export a Slaide document
export_documentUse this when the user asks for a file, a download, or 'the PowerPoint': it turns a document into a real file — pptx (editable PowerPoint), pdf, docx, png or xlsx (Excel workbook). An imported deck may preserve eligible original slides; an attached company template is used when the document fits it. Rendering takes up to a few minutes, so this returns a job_id. When the chat shows the user a live progress card for the job, the card follows it by itself and offers the download when the file is ready: say in a sentence that the file is being prepared, then stop — do not poll. Without such a card, poll get_job after poll_after_ms and, when it completes, hand the user the download link from the result. The link is private and expires after 15 minutes; it does not make the document public. Check available_exports from get_document if you are unsure a format is supported.
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": {
"document_id": "<document_id>",
"format": "<format>"
},
"name": "export_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | The file type the user asked for. Not every document supports every type; `available_exports` from get_document lists the ones this document supports. | |
| document_id | Yes | Opaque id of the document to export, taken from search_documents, get_document or a job result. | |
| workbook_name | No | Which workbook to export as xlsx when the document holds several. Use a `name` from `workbooks` in get_document. Not needed otherwise. | |
| idempotency_key | No | A key of your choosing; reuse it when you retry after a lost response. Omitted, the same export of the same document version within 24 hours returns the earlier job instead of rendering again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present only when there is something to tell the user about this build; pass it on in your own words. | |
| job_id | Yes | Handle of the background job. Pass it to get_job or cancel_job. | |
| status | Yes | State of the job when this response was sent: queued, running, completed, partial, failed or cancelled. | |
| app_url | Yes | Link that opens the document in the Slaide web app. Share it with the user. | |
| document_id | Yes | The document the job works on. Opaque id of the document. Pass it to get_document, update_document or export_document. | |
| deduplicated | No | True when this request matched an earlier one and that earlier job is returned instead of a new one. | |
| poll_after_ms | Yes | Milliseconds to wait before the first get_job call. |