{"id":120444,"plugin_id":"plugin_asdk_app_6adce9902d948191a8279bbf8682c926","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-27T06:14:46.900Z","digest":"9fc2c1c4458dbe2dab71396aa69d99152c691ebd5eec9f5f553802114d13a766","against":null,"payload":{"description":"Get pictures or videos into the iHatePosting media library so they can be attached to a post. Use when the person wants to post with a picture or video, gives a web address of one, or wants to upload a file from their computer.","included_files":[],"name":"create-post-media","skill_md_contents":"---\nname: create-post-media\ndescription: Get pictures or videos into the iHatePosting media library so they can be attached to a post. Use when the person wants to post with a picture or video, gives a web address of one, or wants to upload a file from their computer.\n---\n\n# Pictures and videos for a post\n\nA post attaches a file by its `path` from the media library. Look there first, upload only when it is not there.\n\n## Look in the library\n\nCall `mediaListTool` (newest first, 18 to a page; pass a name to filter). If the file the person means is already there, use its `path` and do not upload it again.\n\n## From a public web address\n\nCall `uploadFromUrlTool` with the address. It must be a public `https` address ending in `.png`, `.jpg`, `.jpeg`, `.gif`, `.webp` or `.mp4`. A file on someone's computer cannot be fetched this way. The answer holds the file's id and path.\n\nSome files are prepared after they are uploaded. If the file's status is `processing`, wait about ten seconds and call `mediaStatusTool` with its id until it says `ready`. `ready` means the path can be used. If it says ready with a warning, preparing the file failed and the original is used; tell the person.\n\n## From the person's computer or phone\n\nCall `uploadWidgetTool`. Only clients that can show an interactive panel display it. If it does not appear, ask the person for a public web address instead. What the person adds is listed by `uploadWidgetStatusTool` with the `sessionId` that `uploadWidgetTool` returned; a file whose status is `processing` is still being prepared, so ask again in about ten seconds. Do not call `uploadWidgetTicketTool`: only the panel uses it.\n\n## Using the file\n\nPass the file's `path` in `attachments` of the post item. Platforms differ in how many files and what kinds they accept (for example a platform may want one video or up to four pictures); `integrationSchema` says which, so read it before you attach. When a platform's rules ask for pictures inside the text, use the path as the `src` of an `<img>` tag.\n\nThis plugin does not create pictures or videos with AI. If the person asks for one, say so and offer to use a file they already have.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}