Import Stock Photo
import_stock_photoImports a selected Pexels or Unsplash photo into project storage and returns its relative path and photographer attribution. Does not apply the image to a design. Attribution is part of the imported asset metadata.
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>",
"provider": "<provider>",
"importInput": "<importInput>"
},
"name": "import_stock_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | ||
| projectId | Yes | ||
| importInput | Yes | The importInput object of one search_stock_photos result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| widgetDataJson | No |