download_image
Download an image by its provider ID to a local file or return base64 data. Choose from thumbnail, small, medium, large, or original sizes.
Instructions
Download an image to local storage or return base64 encoded data.
Args: image_id: Image ID in format provider_id (e.g., pexels_123456) size: Image size variant to download Options: thumbnail, small, medium, large, original output_path: Optional path to save the image locally. NOTE: If a relative path is provided, it will be resolved from the Image Search MCP server's current working directory, which may not be the project directory. To ensure the file is saved in a specific location, use an absolute path (e.g., /home/user/image-search-mcp/downloads/image.jpg).
Returns: Path to downloaded file or base64 data
Example: download_image("pexels_123456", size="medium", output_path="/absolute/path/to/save.jpg")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | original | |
| image_id | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |