Track Download
track_downloadTrack Unsplash photo downloads to comply with API guidelines and credit photographers when users save or download images.
Instructions
Track a photo download (REQUIRED by Unsplash API guidelines).
You MUST call this function when a user downloads or saves a photo. This is required by Unsplash's API guidelines to properly credit photographers and track usage statistics.
Call this AFTER the user confirms they want to download/use the image, not when just displaying search results.
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": {
"photo_id": "<photo_id>"
},
"name": "track_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo_id | Yes | The photo ID from a previous search_photos or get_random_photos result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |