download_image
Download an image from a URL to a local directory. Returns the saved file path.
Instructions
Download an image from a URL to the local machine. Returns the local file path.
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": {
"url": "<url>"
},
"name": "download_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the image to download | |
| filename | No | Optional filename for the downloaded image. If not provided, will use the original filename from the URL. | |
| download_dir | No | Directory to save the image (default: ./downloads) | ./downloads |