Bing Wallpaper Skill
This skill helps AI agents fetch the daily Bing wallpaper from the 60s API, which provides the latest Bing homepage background image.
When to Use This Skill
Use this skill when users:
- - Ask for today's Bing wallpaper
- Request a beautiful daily background image
How to Use
Execute the associated scripts/wallpaper.sh script to fetch the Bing wallpaper.
CODEBLOCK0
Options
- -
--encoding, -e <format>: Optional. Specifies the output response format. Valid options are text, json, image, and markdown.
Return Values
The script securely calls the 60s Bing wallpaper API and outputs the response to stdout. Depending on the encoding parameter, the response could be a JSON string, plain text, markdown, or binary image data.
Usage Examples
CODEBLOCK1
Response Format
The return values differ based on the encoding parameter:
- 1. Default & Recommended (
--encoding markdown)
-
When to use: By default for standard wallpaper inquiries.
-
Why: Returns a brief description of the wallpaper along with the image link in an easy-to-read markdown format.
- 2. Just the Link (
--encoding text)
-
When to use: When the user only wants the image link.
-
Why: Returns exactly the raw image link and nothing else.
- 3. Structured Data (
--encoding json)
-
When to use: When you need the wallpaper description and link in a structured JSON format.
-
Why: Useful for parsing the response to extract specific fields programmatically.
- 4. Direct Image (
--encoding image)
-
When to use: When the user specifically requests the image file itself.
Bing 壁纸技能
该技能帮助AI代理从60s API获取每日Bing壁纸,该API提供最新的Bing主页背景图片。
何时使用该技能
当用户出现以下情况时使用该技能:
- - 询问今日Bing壁纸
- 请求获取一张漂亮的每日背景图片
使用方法
执行关联的 scripts/wallpaper.sh 脚本来获取Bing壁纸。
bash
./scripts/wallpaper.sh [编码格式]
选项
- - --encoding, -e <格式>:可选参数。指定输出响应格式。有效选项为 text、json、image 和 markdown。
返回值
该脚本安全调用60s Bing壁纸API,并将响应输出到 stdout。根据 encoding 参数的不同,响应可以是JSON字符串、纯文本、Markdown或二进制图片数据。
使用示例
bash
使用默认API编码获取Bing壁纸
./scripts/wallpaper.sh
以JSON格式获取Bing壁纸
./scripts/wallpaper.sh --encoding json
以纯文本格式获取Bing壁纸(简化用法)
./scripts/wallpaper.sh text
以Markdown格式获取Bing壁纸
./scripts/wallpaper.sh -e markdown
以图片形式获取Bing壁纸
./scripts/wallpaper.sh image
响应格式
根据 encoding 参数的不同,返回值有所区别:
- 1. 默认与推荐(--encoding markdown)
-
使用场景: 默认用于标准壁纸查询。
-
原因: 以易于阅读的Markdown格式返回壁纸的简要描述及图片链接。
- 2. 仅返回链接(--encoding text)
-
使用场景: 当用户仅需要图片链接时。
-
原因: 仅返回原始图片链接,不包含其他内容。
- 3. 结构化数据(--encoding json)
-
使用场景: 当需要以结构化JSON格式获取壁纸描述和链接时。
-
原因: 便于通过编程方式解析响应以提取特定字段。
- 4. 直接返回图片(--encoding image)
-
使用场景: 当用户明确要求获取图片文件本身时。