Index of every page on this site: llms.txt
All skills
postlake avatar

/postlake-media

@283cfc0
Run it yourself

Upload an image or video to PostLake and attach it to a post. Use when a post needs media, or for platforms that require it (Instagram, TikTok, YouTube, Pinterest).

Use this Skill: https://skilld.dev/gh/postlake/postlake-mcp/postlake-media

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈45 tokens for metadata: the name and description. ≈685 when used: this file.

Description uses 2.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈181 characters, or 2.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

PostLake: upload media

Upload the file first to get a med_… id, then pass it as media in a publish or schedule call. Some platforms require media (Instagram, TikTok, YouTube, Pinterest).

Auth

Authorization: Bearer $POSTLAKE_API_KEY

Base URL https://api.postlake.dev.

Upload

POST the raw bytes with the file's Content-Type. Limits: images ≤20MB (jpeg/png/webp/gif); videos ≤200MB (mp4/mov/webm).

From a local file:

curl -X POST https://api.postlake.dev/v1/media \
 -H "Authorization: Bearer $POSTLAKE_API_KEY" \
 -H "Content-Type: image/jpeg" \
 --data-binary @photo.jpg

From a URL (download it first, then upload the bytes):

curl -sL "https://example.com/photo.jpg" -o /tmp/m.jpg
curl -X POST https://api.postlake.dev/v1/media \
 -H "Authorization: Bearer $POSTLAKE_API_KEY" \
 -H "Content-Type: image/jpeg" \
 --data-binary @/tmp/m.jpg

Response:

{ "id": "med_47214a…", "url": "https://media.postlake.dev/med_47214a…", "contentType": "image/jpeg", "size": 86487 }

Attach it to a post

Pass the id(s) as media, with optional alt text for accessibility:

curl -X POST https://api.postlake.dev/v1/posts \
 -H "Authorization: Bearer $POSTLAKE_API_KEY" \
 -H "Content-Type: application/json" \
 -H "Idempotency-Key: $(uuidgen)" \
 -d '{
  "text": "New drop 👟",
  "accounts": ["acc_54d8…"],
  "media": ["med_47214a…"],
  "mediaAlt": ["A pair of orange running shoes"]
 }'

Tips

  • For removal, distinguish the social post from its uploaded file. Cancelling or retracting a post keeps its uploads and does not refund spent publishing credits.

  • List stored files with GET /v1/media. Preview irreversible erasure with GET /v1/media/{id}/deletion; only after owner confirmation send its snapshot to DELETE /v1/media/{id}. Drafts and pending publication block erasure.

  • MCP provides the same flow through manage_media: list, preview_delete, then delete with the confirmed snapshot. Erasure leaves social copies online but removes PostLake previews. Storage failures remain retryable.

  • Uploads retain a minimum of 90 days while the account remains open, extended for scheduled references through terminal outcome plus 30 days if later. There is no automatic expiry. Explicit erasure and legal/security removal are exceptions. Sources are public URLs, not confidential storage. Keep originals. See https://docs.postlake.dev/media#deletion.

  • Set the Content-Type to the real file type. It's how PostLake validates the upload.

  • For video platforms (YouTube/TikTok) upload an mp4 and set a title via platformOptions.youtube.title.

  • Reuse a med_… id across multiple posts; you don't need to re-upload.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides standard instructions for uploading media files to the PostLake API. It uses command-line tools to download media from a URL to a temporary directory and then transmit those bytes to the vendor's service. No malicious behavior or unauthorized code execution was found.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 283cfc0. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 months ago

README badge

README badge for postlake/postlake-mcp/postlake-media