search_and_download_images
Search for images by keyword from Pixabay and Picjumbo, then download them to a local directory. Returns image metadata and save paths.
Instructions
按关键词从 Pixabay 和/或 Picjumbo 搜索图片并保存到本地目录。返回图片元数据与本地保存路径。
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": {
"keyword": "<keyword>",
"save_dir": "<save_dir>"
},
"name": "search_and_download_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | 搜索关键词,例如 nature、cat、landscape | |
| save_dir | Yes | 图片保存目录(绝对路径或相对路径),若不存在会自动创建 | |
| count | No | 下载图片数量,默认 10,范围 1-200 | |
| size | No | 图片尺寸,默认 webformat(640px) | webformat |
| safesearch | No | 是否启用安全搜索(过滤成人内容),默认 true | |
| source | No | 图片来源,支持 'pixabay' 和 'picjumbo'。可以是字符串或数组。默认 ['pixabay'] |