Import a PowerPoint or EaseWeb file
import_presentationCreate a new presentation of yours from a PowerPoint file (.pptx) or an EaseWeb archive (.zip, as exported by the site): slides, texts with their formatting, shapes, pictures, backgrounds and links become editable blocks, the way the "Import" button of the site does it. Returns the new presentation (ids only unless "response" is "full") and "warnings" about what could not be converted. With "into" (the slug of a presentation you may edit) the file updates that presentation instead: slide N of the file replaces the blocks and the background of slide N, which keeps its id, so links to it, notes and history stay; unchanged texts keep their translations. "slides" limits it to some numbers of the file; slides of the file after the last one of the presentation are added. Its title, theme, slide names and database scripts stay.
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": {
"data_base64": "<data_base64>"
},
"name": "import_presentation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| into | No | Slug of an existing presentation to update from the file (instead of creating a new one). | |
| title | No | Title of the new presentation (optional). | |
| access | No | Who sees it (default "private": only you, until you publish it; "public": everybody reads it; "open": every signed-in person edits it too). | |
| rename | No | With "into": give the slides the names the file has (default false: they keep theirs). | |
| slides | No | With "into": only these slide numbers of the file (1-based); all by default. | |
| project | No | Slug of one of your projects to put the presentation in. | |
| filename | No | Name of the file, like "lecture.pptx" (its extension helps to recognise the format; without a title, it gives the title). | |
| response | No | "brief" (default): only the ids, numbers and types of the slides and blocks; "full": every prop of every block too. | |
| data_base64 | Yes | The file, base64 (a data: URL prefix is allowed; at most 28 MB). | |
| base_version | No | With "into": the "version" of the presentation as you read it; refused (409) when it changed meanwhile. | |
| remove_extra | No | With "into": remove the slides of the presentation after the last slide of the file (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | No | The address people open in a browser. | |
| lang | No | The language its texts are written in; "tr" holds the others. | |
| slug | Yes | The address of the presentation: /movie/<slug>/. | |
| owner | No | User name of the author. | |
| theme | No | ||
| title | No | ||
| access | No | open, public or private. | |
| slides | Yes | ||
| project | No | The project it belongs to, or null. | |
| updated | No | ||
| version | No | Stamp of the content as it is now: give it back as "base_version" to change it only if nobody else did meanwhile. | |
| can_edit | No | Whether you may change it. | |
| database | No | Setup scripts of the databases of runnable code blocks (shown to the author only). | |
| title_tr | No | The same text in the other languages of the site: {"en": "..."}. | |
| warnings | No | What could not be converted. | |
| languages | No | The languages of the site. | |
| cover_slide | No | Id of the slide shown as its cover in the lists (null: an uploaded picture, or no slides). | |
| description | No | ||
| database_chars | No | A part or the words only were read: how long each database script is (the whole presentation without "texts_only" gives them). | |
| missing_translations | No | What is not translated yet into the other languages of the site (add it): the first ones; "missing_translations_count" says how many there are. | |
| missing_translations_count | No | How many texts are not translated yet. |