Upload course cover
create_course_cover_upload_sessionCreates a JPEG/PNG upload session for the cover of a specified course draft. Requires a course ID and revision, but no file data; file selection happens afterward in the Trainn uploader. Chat attachments and base64 image data are not supported inputs. The image must be at least 1440×780 pixels. Supported hosts display an in-chat uploader; other hosts receive a standalone upload link. A successful upload applies the cover to the draft. General Library MP4/PDF uploads use create_library_upload_session.
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": {
"course_id": "<course_id>",
"expected_revision": "<expected_revision>",
"idempotency_key": "<idempotency_key>"
},
"name": "create_course_cover_upload_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | ||
| idempotency_key | Yes | ||
| expected_revision | Yes |