search-assets

Installation
SKILL.md

search_media_library searchQuery

Call search_media_library on DAM with a tight filter. Do not fetch a broad page and filter in code.

Discover fields before you guess

Accounts define arbitrary custom-metadata fields. The user will type normal words ("Nike", "summer campaign", "EMEA", "approved") that may be a field name, a select option, a tag, or only a filename. Never invent "customMetadata.<name>".

For every descriptive word you might put on name or tags:

  1. Call list_custom_metadata_fields once. Match the word against each field's name, label, and schema.selectOptions (case-insensitive). Use the field's name (not label) as "customMetadata.<name>".
  2. Call list_client_tags with that word as label. If tags come back, filter with tags IN [...] using the returned tag names verbatim.
  3. Only if neither call matches may you fall back to name HAS "…". Literal filenames, extensions, and explicitly "named/called/titled X" go on name without this check.

A no-match is cheap: omit that custom-metadata clause rather than guessing a field. Skip filler words ("files", "show me", "assets").

Select types: SingleSelect= / IN; MultiSelectIN / NOT IN. Prefer a returned selectOptions value over the user's raw spelling. Text → = : HAS; Number/Date → < <= > >=; Boolean → = with unquoted true/false.

Inputs

Installs
362
GitHub Stars
2
First Seen
Jul 1, 2026
search-assets — imagekit-developer/skills