postlake-media

postlake-media is a skill for Claude Code from PostLake/postlake-mcp. It costs 43 tokens per session (571 once invoked), scanned A, original, MIT.

A PostLake media uploader for adding images or videos to social-media posts.

In plain words
What is it for?
Uploading supported local images or videos, receiving a media ID, and attaching that ID to a published or scheduled post.
Why use it?
It handles the file-upload step required before attaching media to a post, including on platforms that require visual content.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the postlake plugin — 8 skills, 2 MCP servers shipped together

Good fit Uploading supported local images or videos, receiving a media ID, and attaching that ID to a published or scheduled post.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/postlake/postlake-mcp/postlake-media
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostLake/postlake-mcp --skill postlake-media
Clone the repo
git clone --depth 1 https://github.com/PostLake/postlake-mcp

Made for: Claude Code.

Or install postlake, the plugin that ships this one along with the rest of its 8 skills, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for postlake-media

README.md
[![agentmods](https://agentmods.dev/badge/skills/postlake/postlake-mcp/postlake-media/github.svg)](https://agentmods.dev/skills/postlake/postlake-mcp/postlake-media)
Your own site
<a href="https://agentmods.dev/skills/postlake/postlake-mcp/postlake-media"><img src="https://agentmods.dev/badge/skills/postlake/postlake-mcp/postlake-media/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for postlake-media

Your own site · 80×15
<a href="https://agentmods.dev/skills/postlake/postlake-mcp/postlake-media"><img src="https://agentmods.dev/badge/skills/postlake/postlake-mcp/postlake-media.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 571 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00571
Opus 5 $0.00022 $0.00285
Sonnet 5 $0.00009 $0.00114
Haiku 4.5 $0.00004 $0.00057

Measured 5d ago against content hash 44126db868c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

postlake-media scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://api.postlake.dev/v1/media \
skills/postlake-media/SKILL.md · 73 lines

What it actually says

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

  • 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.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed 44126db868c3
  2. 9d ago First seen · 73 lines · 43 tokens per session scan A 924143df12db

Subscribe to this mod's changes

postlake-media is a skill published in the GitHub repository PostLake/postlake-mcp (0 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 571 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.