search_images
Find stock photos for storefront pages or products and return WebCake CDN-ready URLs, re-hosting Pexels results so raw links display correctly.
Instructions
Search stock photos (Pexels) for a page/product. IMPORTANT: the storefront only renders images served from the WebCake CDN (image domains are whitelisted) — raw Pexels URLs will NOT display. By default this re-hosts each result on the WebCake CDN and returns a ready-to-use cdn_url (cached, so repeats are free). Use cdn_url for image src / product images. Requires the PEXELS_API_KEY environment variable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Subject to search, e.g. 'coffee shop interior' | |
| upload | No | Re-host each result on the WebCake CDN and return cdn_url (default true — required for the image to show). Set false to only browse Pexels URLs. | |
| per_page | No | How many results (default 6) | |
| orientation | No | Preferred orientation |