import_stock_image
Download a stock photo by its search ID, store it in the media library with alt text and attribution, and return the asset for use in image fields.
Instructions
Import a stock photo (by the id from search_stock_images) into the media library. Downloads the image, stores it as a regular asset with alt text + attribution, and returns the asset — set its documentId on an image field with set_field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Alt text override (defaults to the provider's description) | |
| site | No | Site slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content. | |
| providerId | Yes | Photo id from search_stock_images |