Replace images
replace_images_from_searchReplace many image nodes at once: for each {node_id, query} patch, search Pexels, upload the top match to the site's CDN, and patch the node's src + alt — all in ONE tool call, batched into ONE new draft version. Use this after create_site_from_template to swap every placeholder image at once instead of doing 2N sequential calls (find_images + upload_image (with url) per image). Build the patches array from the manifest's image_nodes (each entry has a suggested_query you can use directly, override when the brief calls for something more specific). Up to 20 images per call. Each patch's node_id must exist in the current fixture; missing nodes are reported as skipped (not fatal — other patches still apply).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patches | Yes | Array of image-replacement patches. Each item: a node_id from the site's manifest plus a Pexels query. Tool searches, uploads, and patches all in ONE round-trip. Each node_id (and field) may appear at most once. Up to 20 images per call (Pexels rate budget). | |
| site_id | Yes |