Search stock images
search_stock_imagesSearch Unsplash for stock photos. Use this when you need a real-world photo and the user has not supplied one. Unsplash photos are hotlinked, never copied into the asset library: set the chosen result's url exactly as returned (keep its query parameters) as the section media.src, then call upload_asset(sourceUrl: that url, downloadLocation: its stock.downloadLocation) once, which stores nothing and reports the use to Unsplash, as Unsplash requires. Each result's credit names the photographer with links: credit them when you show or suggest a photo ("Photo by on Unsplash", linking to credit.photographerUrl and credit.unsplashUrl).
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": {
"projectId": "<projectId>",
"query": "<query>"
},
"name": "search_stock_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of results (1-30) | |
| query | Yes | What to search for, e.g. 'mountain sunrise at a lake' | |
| offset | No | Pagination offset | |
| projectId | Yes | The project ID |