Get template recreation brief
get_recreation_briefStart turning a public motion video into an official HyperCodeMotion Studio gallery template. Use it whenever the user sends the link of a prompt-motion.com or oneshotted.io video together with a moderator code, with or without other words: that means publish it as a template. Takes that link and code (adminCode) and what that page shows (its video file, prompt, title and author, read by the caller, since the source sites often refuse this server) and returns the source details (title, author, and the published prompt when the page shows it), the brief (how to recreate it in three formats with the HyperCodeMotion signature, and the gallery card to fill in) and reference frames of the original video as images, labelled with their times. The first call starts extracting those frames and may answer reference.status: preparing; call it again until it is ready, and do not build before seeing them. When it answers reference.status: upload (prompt-motion.com refuses servers), run upload.script in a code or shell tool to send the video, then call it again. If the video is already a template, says so with its status instead; an unfinished proposal left idle for 20 minutes (another session) is discarded and the brief starts over (field restarted). Without a valid moderator code it answers needsCode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Link of the video's page, such as https://prompt-motion.com/<id> or https://oneshotted.io/v/<slug>. | |
| title | No | The video's title on the page. | |
| video | No | Address of the page's video file (.mp4 on media.prompt-motion.com or r2.oneshotted.io), as read on the page. | |
| author | No | The author's name, only when the page names one. | |
| prompt | No | The prompt the page publishes with the video, as read on the page. | |
| adminCode | Yes | The moderator code the user gave with the link. Required: only moderators can make gallery templates. Never repeat it back. | |
| authorUrl | No | The author's profile link, when the page gives one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| code | No | ||
| note | No | ||
| brief | No | ||
| error | No | ||
| groups | No | ||
| prompt | No | ||
| source | No | ||
| status | No | ||
| upload | No | ||
| formats | No | ||
| message | No | ||
| template | No | ||
| needsCode | No | ||
| needsPage | No | ||
| reference | No | ||
| maxDuration | No | ||
| alreadyExists | No | ||
| promptComplete | No |