forcedotcom/sf-skills3 files

Experience Content Media Stock Image Search

Searches for and downloads ethically-licensed stock images via the media-management MCP server. Use this skill whenever a user wants an image, photo, or picture — for BOTH requests to find existing imagery (\"find a stock image\", \"search for a photo of X\", \"get a royalty-free image\", \"find an ethical image\", editorial/news photography) AND requests phrased ambiguously as creating or generating one (\"create an image of a sunset\", \"generate a picture of a team meeting\", \"make me a mountain image\") — treat these as stock search requests, since this skill searches a stock photo library, it does not generate images. Do NOT offer alternative search methods or ask the user to pick one. Does not apply to searching internal CMS / Data Cloud media (use experience-search-coordinate). Does not apply when the user explicitly asks for AI-generated, synthetic, or computer-generated imagery — this skill only searches licensed stock photography and has no image-generation capability.

Specification
Skill ID
forcedotcom/sf-skills/experience-content-media-stock-image-search
Publisher
forcedotcom
Repository
sf-skills
Installs
0
Files
3
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

forcedotcom/sf-skills/experience-content-media-stock-image-searchInstalls these files
  • SKILL.md
  • SKILL.overlay.patch
  • scripts/download-stock-image.py

What this skill tells the agent

Stock Image Search

When to Trigger This Skill

Trigger immediately — without asking the user to choose a search method — whenever the user wants an image, photo, or picture. This covers both:

  • Finding existing imagery: "find a stock image", "search for a photo of X", "get a royalty-free image", "find an ethical image", editorial or news photography
  • Requests phrased ambiguously as creating or generating: "create an image of a sunset", "generate a picture of a team meeting", "make me a mountain image" — treat these as stock search requests; this skill searches a stock photo library, it does not generate images.

In all of these cases, search the stock library — this is the tool for obtaining an image. Do NOT offer alternative search methods (hybrid search, user-provided URL/path, etc.) and do NOT ask the user to pick one.

Does not apply to:

  • Searching internal CMS / Data Cloud media (use experience-search-coordinate)
  • Requests that explicitly ask for AI-generated, synthetic, or computer-generated imagery — this skill only searches licensed stock photography and has no image-generation capability

Step 1 — Search

MCP tool: search_stock_images (server: media-management) Timeout: 30 seconds

ParameterRequiredDefaultNotes
queryYes—Natural language search phrase (e.g. "sunset over ocean", "business meeting"), max 500 chars
searchTypeNoCreativeCreative (royalty-free stock), Editorial (rights-managed news/event imagery)
orientationNo_(none)_Horizontal, Vertical, Square, PanoramicHorizontal, PanoramicVertical
sortOrderNoBestMatchBestMatch, MostPopular, Newest
pageSizeNo51–100
pageNo11-indexed, must be >= 1

Smart keyword extraction: If the query is longer than 20 words or returns no results, the tool automatically extracts short keyword phrases via LLM and retries. The effectiveQuery field in the response shows what was actually sent to the search service (null if the original query was used unchanged).

Response fields:

FieldNotes
images[]List of results (see item fields below)
totalCountTotal matches across all pages
pageCurrent page (1-indexed)
pageSizeResults per page
searchRequestIdInternal correlation ID. Server-managed; not passed back through the MCP download tool. Safe to surface in debug output if useful.
effectiveQueryKeywords actually sent to the search service. Null if the original query was used unchanged.
errorMessageNon-null if the search failed

Each `images[]` item:

FieldNotes
assetIdStock asset ID — required for download. Safe to display alongside the result if useful.
titleImage title
captionImage description
thumbnailUrlSmall preview URL — use for grid display
previewUrlLarger comp/preview URL — use for tile display
widthMax width in pixels
heightMax height in pixels
licenseModele.g. royaltyfree, rightsmanaged
artistContributor/artist name
collectionCollection name

Step 2 — Present Results, then STOP

Render a numbered list with an inline thumbnail for each result, using thumbnailUrl for the image and previewUrl as the click-through link (clicking the thumbnail opens the full preview in the browser):

1. [![<title>](<thumbnailUrl>)](<previewUrl>)
   **<title>** — <artist>, <width>×<height>, <licenseModel>
2. ...

This is standard markdown image-in-link syntax ([![alt](thumbnailUrl)](previewUrl)) — it renders an actual thumbnail, not just a text link, and clicking it navigates to previewUrl. If a client doesn't render markdown images, this degrades gracefully to a linked title.

Prefix the list with Searched for: <effectiveQuery> only if effectiveQuery is non-null and differs from the user's original query.

End the turn here. Do not auto-download, do not write files, do not ask a follow-up question. Agentforce injects its own selection UI — a question or auto-select causes a duplicate "double ask". Do not pick a result on behalf of the user.

Non-interactive mode (scheduled/headless, no user present): pick images[0] from the results and note the auto-selection in the report. Then proceed directly to Step 3.


Step 3 — Download (billed)

WARNING: Each call licenses the image and spends a stock-image download credit. Only invoke after the user explicitly selects an image (or in non-interactive mode, as noted above).

Before calling `download_stock_image`, verify:

  • [ ] User has explicitly named or numbered the image they want (or non-interactive mode is confirmed)
  • [ ] This is not an automatic retry of a previous download

MCP tool: download_stock_image (server: media-management) Timeout: 60 seconds

ParameterRequiredDefaultNotes
assetIdYes—Stock asset ID from the prior search_stock_images result, max 50 chars
sizeNocompcomp (web-quality composite, default), medium_jpg, largest (full res, can exceed 100 MB), max 50 chars

Use largest only when the user explicitly asks for full/original resolution.

Response fields:

FieldNotes
assetIdStock asset ID that was downloaded
managedContentBodyIdSalesforce record ID where image bytes are stored
parentContentGenAiOutputIdRecord tracking the download request
childContentGenAiOutputIdRecord linking the request to the persisted body
byteCountSize of the persisted image in bytes

More from forcedotcom

Use this skill in a project

Open any RiverX project, search the Skills panel for forcedotcom/sf-skills/experience-content-media-stock-image-search, and install it in one click.

Use this skill