Set puzzle image
set_puzzle_imagePut the picture of a puzzle: the image the player puts together, cut into pieces whose number follows its shape and the piece level. Only for a puzzle (its state has "puzzle"); images on its questions and answers go with illustrate_items. Source "attachment": an image the user attached to the conversation for the puzzle, by its attachment_id. Source "search": an image that shows what you describe in "shows", found in the Educaplay image bank and a stock photo library. Source "image_id": the one the user chose from search_image_library or list_my_media. A puzzle that already has its picture keeps it unless existing is "replace", and with "search" a replacement is always a different picture. The result says what the picture shows, when known, and how many pieces the puzzle has.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shows | No | With source "search": what the picture must show, in English in two to five words ("solar system planets", "Eiffel Tower Paris"). | |
| source | Yes | Where the picture comes from. Only the field of that source is used. | |
| existing | Yes | What happens when the puzzle already has a picture. "keep": it is left untouched; the value when the puzzle needs its first picture. "replace": it is changed and the old one is discarded; ONLY when the user asked to change the picture ("another picture", "use this photo instead", "I do not like it"). | |
| image_id | No | With source "image_id": id returned by search_image_library or list_my_media. | |
| activity_id | Yes | Id of the activity. | |
| attachment_id | No | With source "attachment": id of the attached image, exactly as it appears in the message of the user. |