https://mcp.contenthero.ai and by the @contenthero/mcp npm package. A write tool changes your account; a read tool does not.
list_media
read
List media you can place. With no source, or a library source, it reads the account’s own files: every file, or one part of the library, each item naming the part it is in. With source stock it reads the stock catalog instead: licensed photos, videos, GIFs, stickers and built-in sounds that are not the account’s files until used. A stock read names one collection and may take a query; it comes back in the catalog’s own order and does not take the library’s filters or sort. Every item shows its media id, its name and its resolved URL. Place an item by its media id. Call get_media to SEE an item (image blocks), or view to see a clip’s frames. A stock page can hold fewer items than asked, and repeating a read can return different items; only an absent nextCursor means there are no more.
Stock only, and required with it. Which part of the stock catalog to read: ‘photos’, ‘videos’, ‘gifs’, ‘stickers’ or ‘sounds’.
Stock photos and videos only. Narrow the results to one shape: ‘landscape’, ‘portrait’ or ‘square’. Omit it to read every shape.
Creations only. Narrow to one kind of generation: ‘creation’ (normal generations), ‘sheet’ (reference sheets), or ‘look’. The same word an item’s origin says. Omit to list all.
Link each image’s small copy instead of the file itself, where the library keeps one: for drawing images small, as code that shows many at once does. Never for downloading or delivering a file, or showing it large.
Which media to read: ‘all’ (the default, every file the account keeps), ‘creations’ (studio generations), ‘uploads’ (files the user uploaded), ‘exports’ (renders of their projects), or ‘stock’ (the stock catalog, which is not part of ‘all’).
get_media
read
SEE specific media, up to 5 items. This is for YOUR eyes only: it returns image blocks so you can judge a face, check legibility or compare variations, and it renders NOTHING for the person. If they should see it, call show_media, which displays up to 100 items and costs you almost no context. Pass a batch of items to view at once, returned as image blocks for you: each item is either a { url } (e.g. a URL threaded from view, a layer/asset URL from get_project / get_card, or an upload URL from list_media source=uploads) or a { mediaId } (the media id list_media, search_media and get_folder print: a1B2c3D4, or a1B2c3D4-2 for one output of a generation with several). Returns light metadata per item plus an IMAGE block for each image so you can actually see it. To see a clip’s frames, use view; audio still returns metadata + the url, and the metadata of an audio item names its size, duration and container with the stream facts the file states (its codec, sample rate and channels), each only when known. A bare id for a generation returns ONLY its primary output, named by its full media id, and lists the others’ media ids; pass one of those to see it. To ZOOM into an image, set region { x, y, width, height } on an item, in the image’s own pixels: that part is cut from the original and returned at its own detail, never enlarged, so you can check small text or an edge. Use this to inspect the actual pixels, not just URLs.
The media to LOOK at, up to 5 per call. Five is where the inline byte budget runs out, not a round number. Use show_media for a larger set you only need to display.
show_media
read
SHOW media to the person, up to 100 items in one card. Use this to present a set you do not need to look at yourself: search results, a folder, a shortlist, everything a list_media call returned. It renders a grid the person can browse, expand and act on, and it costs you almost no context because it returns urls rather than pixels. Each item is a { url } or a { mediaId }, the same shapes get_media takes. Pair it with list_media: list to FIND, show to PRESENT. Do not re-show media another tool already displayed: anything that creates or imports media renders its own card, and showing it again only duplicates it. If you need to SEE the pixels yourself (judge a face, check legibility, compare variations) use get_media instead, which attaches image blocks for up to 5 items.
search_media
read
Semantically search the account’s editable media library (their generated creations, uploads, stock they have used, and brand assets) by describing the content in natural language. Returns matching assets ranked by relevance, each with its media kind, a description, tags, and, for videos, the timestamps of the specific scenes that matched, so a precise moment can be located. Use this to find existing material to place, reference, or build with, rather than generating new media, whenever the user refers to footage, images, audio, or clips they already have. Optionally restrict results to specific media kinds. This searches only the account’s own usable library, never inspiration, published posts, or knowledge. To browse stock they have not used, call list_media with source stock. Call get_media to SEE a match (image blocks), or view to see a clip’s frames.
A natural-language description of the media to find, describing its visible or audible content.
Link each image’s small copy instead of the file itself, where the library keeps one: for drawing images small, as code that shows many at once does. Never for downloading or delivering a file, or showing it large.
import
write
Bring something into your own library or a new project. Pass exactly one source, and what comes back follows it. url: a file address (an image, video or audio file) becomes library media, free; a video page address on a supported site becomes library media too, and spends credits: the most its download may cost is held and it is charged for what arrived. pptxUrl (a PowerPoint or Google Slides file) or canvaDesignId (a Canva design, through the account’s Canva connection) becomes a new canvas project with editable layers, free; cardId links it to its card in the same call. Pass getCost to see what an import would spend first: nothing runs and nothing is charged. Imported media is referenced by its outputId in generate_* and on a card via update_card. A media import still running at the end of the call returns pending: wait for it with get_status. A tracked post’s video is not imported: analyze_content with kind video downloads it for analysis. Scopes: library:write for a url, editor:write for a project (and planner:write with cardId).
A Canva design id: imported into a new canvas project through the account’s Canva connection (fails with canva_not_connected when it is not linked).
With pptxUrl or canvaDesignId: the card this project is for. The new project is linked to it in the same call (it shows among the card’s assets), so the card opens the edit from the moment it exists. Also needs the planner:write scope.
Return what this import would spend instead of importing (nothing runs, nothing is charged). 0 for a file address or a project.
A public https address: a file, imported free into the library, or a video page on a supported site, whose video is downloaded into the library and spends.
download
read
Download any file of the account’s out of ContentHero to keep: a generation (every output, or one output by its -<n> media id), an upload, an import, a library file, or a project’s export, named by its media id or export id. Answers each file’s name and a save link that names the file, needs no sign-in and does not expire: fetch the link for the file itself. Free: it reads what is already stored. A file not made yet is refused with the step that follows it.
A media id (a generation, -<n> for one of its outputs, an upload, an import, a library file) or an export id.
create_upload
write
Begin uploading local files as library media. Takes each file’s name, type and size in bytes, and answers for each an upload target, which is a temporary write permission and not a media address. A single target: PUT the whole file to its url with exactly its headers. A multipart target: the file goes in parts of the size it states, each signed with sign_upload_parts; PUT each part to its url and keep the ETag header of the store’s answer. Then call complete_upload once for the batch. The finished media is referenced by its outputId in generate_* and on a card via update_card. Besides images, video, audio and documents, it takes JSON data files and 3D models: binary glTF (.glb) or a self-contained .gltf (buffers and images inline as data: URIs). For a file already at a public address, use import. Requires the library:write scope.
sign_upload_parts
write
Sign parts of a multipart upload. Takes the outputId create_upload answered and the numbers of the parts to send, counted from 1. Answers a url and headers for each: PUT that part’s bytes to its url with exactly those headers and keep the ETag header of the store’s answer. Part n starts at (n - 1) times the part size create_upload stated and is that long, the last part ending where the file ends. Signed when asked and safe to ask again, so a slow or interrupted upload asks only for the parts it still needs. Requires the library:write scope.
complete_upload
write
Finish uploads once their bytes were sent. Takes each file’s outputId and, for a multipart file, the number and ETag of every part, exactly as the store answered. Finish a batch together, so the person sees it as one card. Publishes each file and answers its outputId and URL. Finishing twice answers the same media. A .glb or JSON file that is malformed, or a .gltf that points at separate files, is refused here and not kept. Requires the library:write scope.
list_folders
read
List the account’s library folders (their own manual and smart folders, as a flat list with parent links for nesting) together with the built-in derived folders (recents, favorites, edits, canvas, cards). Use this to see how the library is organized before browsing or filing items.
get_folder
read
Return the contents of one folder. The folder id is either one of the account’s own folder ids or a built-in derived-folder key. A manual folder returns exactly the items filed in it; a smart folder computes its members live from its saved query; a derived folder returns its built-in set. Items are media (with kind and a description) and, in manual folders, entities such as projects or posts.
Link each image’s small copy instead of the file itself, where the library keeps one: for drawing images small, as code that shows many at once does. Never for downloading or delivering a file, or showing it large.
create_folder
write
Create a new library folder. A manual folder is an initially-empty collection you then file items into. A smart folder saves a query and stays live, always showing whatever currently matches. Optionally nest it under a parent folder. Create a folder only when the user wants to organize or save a view, not to hold a single transient result.
For a smart folder: the live query that defines its membership (the same filters as the library search bar).
‘manual’ (a collection you file items into) or ‘smart’ (a saved live query). Defaults to manual.
update_folder
write
Update the account’s own folders: rename one, MOVE folders under a different parent (or to the top level with a null parent), change a smart folder’s saved query, and FILE or UNFILE items. addItems/removeItems are DELTAS of { mediaId } (media, as list_media, search_media and get_folder print it), { projectId } or { cardId }, not a list to replace, because an item can sit in several folders at once and a replace would silently unfile it from the others. Filing never moves or copies anything: it adds a pointer, and only manual folders accept items (a smart folder computes its own membership). Pass folderIds to patch several folders at once, which crossed with addItems files the same items into all of them; renaming and re-querying still need exactly one folder. NOTE the asymmetry: nesting a FOLDER via parentId is a MOVE (a folder has one parent), while filing an ITEM is a pointer that leaves its other folders alone.
Move one item within this manual folder: after or before another of its items, or to an end (position). Each item is named as addItems names one. Name neighbors or a position, not both.
For a smart folder: the live query that defines its membership (the same filters as the library search bar).
delete_folder
write
Delete one of the account’s own folders and everything nested under it. This removes the folder structure only; the media and entities inside are pointers, so the underlying assets are never deleted. Confirm intent before deleting a folder that contains items.
update_media
write
Rename a stored file or give it a description, after upload. Pass name, description or both; passing neither is refused. Only files in the library can be changed this way: a generated output or a stock item cannot. An empty description clears it. Returns the file as get_media reads it, with its new name and description. Requires the library:write scope.
favorite
write
Favorite or UNfavorite an asset: pass favorited:false to clear it (default true). For media (one output of a generation, an upload, stock), pass its mediaId as list_media, search_media and get_folder print it (a1B2c3D4-2 for one output of several). For anything else, pass assetType + id (card, voice, brand_kit, project, inspiration_content, gallery, transition, caption-template, template, space). Requires the favorites:write scope. Idempotent in both directions.
`card` \| `voice` \| `brand_kit` \| `project` \| `inspiration_content` \| `gallery` \| `transition` \| `caption-template` \| `template` \| `space`
The kind of asset, for anything that is not media. Pass with id.
A media id, for media. A bare id for a generation with several outputs is refused with their media ids listed.
archive
write
Archive or UNarchive an asset: pass archived:false to restore it (default true). ContentHero never hard-deletes, so this is always reversible. For one output of a generation, pass its mediaId (a1B2c3D4-2 for one output of several). For anything else, pass assetType + id (card, brand_kit, brand_kit_section, project, space, template, style_library). Archiving is a timestamp and nothing else is touched, so a scheduled card restores as scheduled. Requires the favorites:write scope. Idempotent in both directions.
`card` \| `brand_kit` \| `brand_kit_section` \| `project` \| `space` \| `template` \| `style_library`
The kind of asset, for anything that is not media. Pass with id.
A generated output’s media id. A bare id for a generation with several outputs is refused with their media ids listed.
share
write
Make an item’s public link, or stop sharing it with shared:false. Anyone with the link sees the item with no sign-in; a stopped link never opens again, and sharing again makes a new one. For media made in Studio, pass mediaIds: outputs of your finished generations, as list_media, search_media and get_folder print them. One output gives its generation’s link, opened at that output; a generation keeps one link, so sharing it again returns the same page. Several give a new link to them as a set, leaving out any that cannot be shared. To stop a media link, name a generation by one media id or any media link as shareUrl. For anything else, pass assetType + id: a project’s live link shows the project as it is now, a project has one link, and get_project reports it. An export’s share page comes with get_export. Requires studio:write for media and editor:write for a project.
For media: one or more media ids of outputs of your finished generations. To stop sharing, one.