{"id":99986,"plugin_id":"plugin_asdk_app_6abe2b3c23d4819197b775b3a24dee81","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-17T00:11:51.876Z","digest":"cc0d91df76e5b5775a80e4ae75c5751661b802bc4ccf856ce24c0d2ebf3a64d5","against":null,"payload":{"description":"Use when the user wants to attach an image, video or PDF from their own device — such as a screenshot, a rendered video or an export — to a PostDaily post.","included_files":[],"name":"local-media","skill_md_contents":"---\nname: local-media\ndescription: Use when the user wants to attach an image, video or PDF from their own device — such as a screenshot, a rendered video or an export — to a PostDaily post.\n---\n\n# Attaching a file from the user's device to a PostDaily post\n\nFiles reachable by a public `https://` URL are simplest — pass that URL to\n`import_media`. For a file on the user's device there are two ways in; use the\nfirst one you can.\n\n## If you can run commands and read the file (Codex, for example)\n\n1. Check the file exists and read its size and type:\n\n   ```bash\n   wc -c < \"path/to/file\"\n   file --mime-type -b \"path/to/file\"\n   ```\n\n   Accepted types: `image/jpeg`, `image/png`, `image/webp`, `video/mp4`,\n   `video/quicktime`, `video/webm` and `application/pdf`. Convert anything else\n   first (for example a GIF or HEIC to PNG or MP4) and tell the user you did.\n\n2. Call `create_media_upload` with the `workspaceId`, `filename`,\n   `contentType` and `sizeBytes`. It returns `uploadUrl`, `headers`, a ready\n   `curl` command and a `mediaId`. The URL works once and expires at\n   `expiresAt`.\n\n3. Run the returned `curl` command with `<path to …>` replaced by the file's\n   real path, quoted. Keep every `-H` header exactly as given: the URL is\n   signed for that content type and size. Do not print or log the upload URL\n   anywhere else; it grants a write.\n\n4. Call `complete_media_upload` with the `mediaId`. PostDaily checks the\n   stored file has the size and type you declared, and returns it with its\n   dimensions or duration. A mismatch means the wrong file or a changed file\n   was sent — start again from step 1.\n\n## If you cannot (ChatGPT, for example)\n\n1. Call `list_media`. It returns `uploadUrl`, a PostDaily page where the user\n   uploads files from their own device into the workspace, and `now`, the\n   current time.\n2. Give the user that link and ask them to upload the file there and tell you\n   when it is done.\n3. Call `list_media` again with `uploadedAfter` set to that `now`: it returns\n   only what they added. Use its `mediaId`.\n\n## Attach it and check\n\nAttach the file with `media: [{ \"mediaId\": \"…\", \"altText\": \"…\" }]` on\n`create_post`, `update_post` or `validate_post`. Write alt text for images from\nwhat the image actually shows — look at it first if you can.\n\nRun `validate_post` with the media attached: each network has its own limits\non size, length, aspect ratio and how many files a post can carry, and the\ncheck reports them per channel.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}