Make a LinkedIn carousel with Claude: the carousel skill for MagicPost
MagicPost lets Claude build a LinkedIn carousel from outline to draft: Claude writes each slide as an HTML page, the attach_html_slides tool renders the slides into a PDF and attaches it to a draft post in your account. The skill on this page gives Claude the order of the calls and the moments where it has to ask you first.
On LinkedIn, a carousel is a PDF published as a document post. Claude can design slides, but in claude.ai the files it creates stay in its sandbox and never reach a tool. This recipe sends the slides as HTML text, so there is no file to upload.
We ran it on November 29, 2026 from Claude Code against the production server, on a managed test account that has no LinkedIn connection. Every result quoted below is what the tools returned that day.
Result
A draft post with a six-slide PDF carousel attached, ready to preview in MagicPost. The prompt asked to stop at the draft, so schedule_post was never called and nothing was published.
What the tools returned, in order:
create_or_update_post was first asked to create the draft on the managed account. It refused with use_create_member_post: on an account you manage for someone else, a draft is created by create_member_post. On your own account, create_or_update_post creates it directly.
create_member_post answered created: true with a post_id.
attach_html_slides received six portrait slides and attached them on the first call: success: true, kind: carousel_pdf, slides: 6, media_count: 1, with the title and the alt text stored on the PDF. The answer carried no layout issue and no warning.
create_or_update_post, called again with the post_id, updated the text of the draft (created: false).
get_post confirmed the state: media_type: document, one file_post entry of type pdf, publication.state: draft, no schedule date.
Starting prompt
Turn this outline into a six-slide LinkedIn carousel: a cover, then hook, problem, method, proof and next step. Attach it to a new draft and show me the draft before anything is scheduled.
[your outline]
Tools called, in order
create_or_update_postcreates the draft from the post text and returns itspost_id. On a managed account,create_member_postdoes this step.attach_html_slidesrenders the slides, 1080x1350 px in portrait or 1080x1080 px in square, and attaches the PDF. If a slide has text that overflows, overlaps or is cut, nothing is attached.create_or_update_postupdates the post text when you change it after seeing the slides.get_postreads the draft back: media type, PDF entry, publication state.
Where the assistant asks for confirmation
- Before rendering: Claude shows the outline, one idea per slide, and the post text, then waits for your go.
- Before replacing media on a draft that already has some: Claude names what
replace_existingwill remove. - When a slide fails the layout check: Claude fixes it and sends all the slides again. It attaches a slide with a known defect (
ignore_layout_warnings) only if you accept it. - Before scheduling or publishing: Claude asks for the day, the time and the timezone, or for an explicit request to publish now. If MagicPost warns that you already post that day or in that slot, Claude relays the warning before it retries.
The skill file
---
name: linkedin-carousel
description: Designs a LinkedIn carousel as HTML slides and attaches it to a MagicPost draft as a PDF document post. Use when the user asks for a LinkedIn carousel, slides or a swipe post.
---
# LinkedIn carousel with MagicPost
Needs the MagicPost MCP server (`https://mcp.magicpost.in/mcp`). Tools are written `MagicPost:tool_name`. If the server is registered under another name (`magicpost` in Claude Code), use that prefix.
## When to use
- The user wants a carousel (a LinkedIn document post) built from an outline, an article, a transcript or an older post.
- One slide is allowed: it is attached as an image.
- For a photo, a video or a PDF the user already has, use `MagicPost:attach_media_to_post`.
## Workflow
1. **Outline first.** Propose a cover, one idea per slide and a last slide with a single call to action (2 to 20 slides). Write the post text that goes with it. Wait for the user to approve both.
2. **Create the draft.** Call `MagicPost:create_or_update_post` with `content`. Keep `post_id`.
- Managed account (organisation admin): create with `MagicPost:create_member_post` (`member_user_id`, `content`). `create_or_update_post` answers `use_create_member_post` when asked to create there. Pass the same `member_user_id` to every later call.
3. **Write the slides.** One complete HTML document per slide:
- `format: "portrait"` is 1080x1350 px, `"square"` is 1080x1080 px. Set `html` and `body` to that exact size with `overflow: hidden`.
- Allowed: inline CSS, inline SVG, small `data:` images, Google Fonts. Scripts and network are blocked at render time, so no JavaScript, no external image, no external stylesheet.
- Body text at 32 px or larger, every text block well inside the frame.
- At most 100,000 characters per slide.
- Reuse one template: slide number, one headline, one short paragraph.
4. **Attach.** Call `MagicPost:attach_html_slides` with `post_id`, `slides` (all of them, in order), `format`, `title` (shown on the document post) and `alt_text`.
5. **Read the answer.**
- `success: true` with `kind: "carousel_pdf"`: attached. Report `slides` and any `warnings` (text near an edge, low contrast). Warnings never block.
- `slide_layout_issues` (422): nothing was attached. Fix the slides named in `issues` (text overflowing, overlapping or cut) and call again with ALL slides. Use `ignore_layout_warnings: true` only when the user accepts the defect.
- `slides_rate_limited` (429): the account rendered 120 slides in the last hour. Wait, do not loop.
- `post_not_editable`, or a message asking to cancel the schedule: the post is published or scheduled. Media can only change on a draft.
6. **Check the draft.** Call `MagicPost:get_post`. Expect `media_type: "document"`, one `file_post` entry of type `pdf` and `publication.state: "draft"`. Show the user the post text, the slide titles and the PDF link.
7. **Stop there.** The draft stays a draft until the user asks to schedule or publish it.
## Ask the user before
- Rendering: the outline and the post text.
- `replace_existing: true` on a draft that already has media: name what will be replaced.
- `MagicPost:schedule_post` or `MagicPost:publish_post_now`: the exact day, time and timezone, or an explicit "publish now". Relay same-day and exact-slot warnings before retrying with `confirm_same_day: false` or `confirm_exact_slot: false`. Never schedule or publish on your own initiative.
## Limits
- A carousel is the only media of its post. A poll and media cannot coexist (`poll_media_conflict`).
- `append: true` adds one image after existing images (up to 9). It never adds a carousel.
- Rendering uses no AI credits. The only quota is 120 slides per hour per account.
- On an account in validation mode, a scheduled post waits for approval (`pending_approval: true`) and `publish_post_now` answers `approval_required`.
- Publishing goes through LinkedIn's official API with the account connected in MagicPost. The skill never asks for a LinkedIn password or a session cookie.
Plan and price
- Plan
- Creator: $48 (€41) per month, or $27 (€23) per month billed yearly
- Credits
- Rendering slides uses no AI credits. The only quota is 120 slides rendered per hour per account: a call over it answers
slides_rate_limitedand attaches nothing. - Tested on
Variants
Square slides
Ask for square slides and Claude passes format: square, 1080x1080 px, in place of the 1080x1350 px portrait.
A single visual
One slide is attached as an image: a quote card, a chart, a diagram. With append, one more image goes after the images already on the draft, up to 9.
From a post you already published
Claude reads the post with list_my_posts, splits it into one idea per slide and builds the carousel on a new draft.
For a client account
An organization admin passes the member's member_user_id to each call. The draft is created by create_member_post and the PDF is filed in that member's media library. This is the path our test took.
Limits
- From 2 to 20 slides per carousel. Each slide is one HTML document of 100,000 characters at most.
- Slides are rendered by Chromium with scripts and network blocked. Inline CSS, inline SVG, small
data:images and Google Fonts work. JavaScript and external images do not. - Slides are rendered at twice their pixel size, and each page is stored in the PDF as a JPEG at quality 88.
- The layout check blocks five defects: text covered by another element, text crossed by one, text spilling out of its box, text clipped, text outside the frame. Text close to an edge and low contrast come back as warnings and never block.
- Media changes on a draft only. On a scheduled post, the call asks you to cancel the schedule first. On a published post, it answers
post_not_editable. - A carousel is the only media of its post, and a post cannot carry a poll and media together.
- On an account in validation mode, a scheduled post waits for approval and is not published until someone approves it.
- Growth does not include MCP access.
- MagicPost publishes through LinkedIn's official API, with no session cookie and no LinkedIn password. This recipe stops before publication.
About MagicPost
MagicPost is the LinkedIn tool to write, schedule and analyze your posts, in your own voice and through LinkedIn's official API.
Try MagicPost