Skip to main content
Glama

Search CMS Media

search_cms_media
Read-onlyIdempotent

Searches the images already in one of the connected CMS's media collections, newest first, 24 per page. get_website_cms lists the collections Mark can read (mediaCollections); left out, Mark uses the default, and the reply names the collection it searched. Use a result as a website post's cover with save_post meta.cover = { source: "cms", mediaId, collection }, or attach it to a social post with save_post meta.cmsImages = [{ mediaId, collection }]: Mark keeps a reference, never a copy, and a social post's image is copied to the platform when the post is scheduled. To put one in a website post's body, add alt on its own line with the result's url (the original file): on a rich-text (lexical) mapping Mark publishes it as that media document, uploading nothing. Does not change anything; reads from the customer's CMS. These ids are not Mark asset ids. Related: save_post, get_website_cms, search_assets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number, from 1.
queryNoMatches file name or alt text.
channelNoFor a website cover, its channel (blog, faq, competitor_page, landing_page): limits the search to the collections that channel's cover field accepts. Leave it out for a social post or a body image.
collectionNoMedia collection slug from get_website_cms mediaCollections. Left out, the default (where new media goes, else the first readable).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
collectionYes
hasNextPageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / channel / description
      Previous value: -"Website channel whose CMS mapping names the media collection. Leave it out for a social post: Mark uses the first website channel with a media collection."New value: +"For a website cover, its channel (blog, faq, competitor_page, landing_page): limits the search to the collections that channel's cover field accepts. Leave it out for a social post or a body image."
    • addedInput schema / properties / collection
      Added value: +{
      +  "description": "Media collection slug from get_website_cms mediaCollections. Left out, the default (where new media goes, else the first readable).",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedOutput schema / properties / collection
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "hasNextPage",
      -  "items"
      -]New value: +[
      +  "collection",
      +  "hasNextPage",
      +  "items"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / channel / description
      Previous value: -"Website channel whose CMS mapping names the media collection."New value: +"Website channel whose CMS mapping names the media collection. Leave it out for a social post: Mark uses the first website channel with a media collection."
    • removedInput schema / required
      Removed value: -[
      -  "channel"
      -]
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources