← 返回 Skills 市场
flyfujian

Autoglm Search Image

作者 flyfujian · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
31
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install autoglm-search-image
功能描述
使用 AutoGLM 搜图接口,根据用户输入的关键词搜索相关图片。当用户需要搜索图片、查找图片素材等场景时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
使用说明 (SKILL.md)

AutoGLM Search Image Skill

根据用户输入的关键词,调用 AutoGLM 搜图 API 返回相关图片列表。


API

项目 内容
地址 https://autoglm-api.zhipuai.cn/agentdr/v1/assistant/skills/search-image
方式 POST
请求体 {"query": "\x3C搜索关键词>"}

脚本启动时会先向本地服务发起 HTTP GET 请求获取 token:

项目 内容
地址 http://127.0.0.1:53699/get_token
方式 GET
返回 Bearer xxx(直接作为 Authorization 头使用)

若返回值不含 Bearer 前缀,脚本会自动补全。

签名 Headers(每次动态生成):

  • X-Auth-Appid: 100003
  • X-Auth-TimeStamp: 当前秒级 Unix 时间戳
  • X-Auth-Sign: MD5(100003 + "&" + timestamp + "&" + 38d2391985e2369a5fb8227d8e6cd5e5)

执行脚本

使用同目录下的 search-image.py

python search-image.py "猫咪"

无需安装第三方依赖,仅使用 Python 标准库。


返回结果处理

响应结构

{
  "code": 0,
  "msg": "SUCCESS",
  "data": {
    "results": [
      {
        "original_url": "图片链接",
        "caption": "图片描述",
        "source": "来源",
        "original_width": 1267,
        "original_height": 845
      }
    ],
    "query": "搜索词",
    "count": 4
  }
}

输出要求

遍历 data.results,以 Markdown 格式展示每张图片及其描述:

**1. 图片描述(来源)**
![图片描述](original_url)
安全使用建议
Install only if you trust the publisher and understand the local token service. Running the skill will send your image search terms and a locally obtained bearer token to AutoGLM, so avoid confidential queries and verify that the token is narrowly scoped and short-lived.
能力评估
Purpose & Capability
The stated purpose is AutoGLM image search, and the script is narrowly focused on calling the documented image-search endpoint with the user's query.
Instruction Scope
The skill can be invoked for ordinary image-search requests, but each run automatically fetches and uses a local bearer token without an explicit consent step or explanation of token scope.
Install Mechanism
The artifact contains a SKILL.md file and a single Python script using only the standard library; there is no installer, background service, dependency installation, or autorun hook.
Credentials
Network access is expected for image search, but the script retrieves a token from http://127.0.0.1:53699/get_token and sends it with the search query to https://autoglm-api.zhipuai.cn, while the local token provider and authorization boundaries are not explained.
Persistence & Privilege
No persistence or privilege escalation is present, but the script handles bearer credentials automatically whenever it is run.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install autoglm-search-image
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /autoglm-search-image 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
autoglm-search-image 1.0.0 - 首次发布,提供基于 AutoGLM 搜图 API 的图片搜索功能。 - 自动从本地服务获取 Token,无需手动配置环境变量。 - 支持命令行使用,无需第三方依赖,仅用 Python 标准库。 - 图片搜索结果以 Markdown 形式输出,包含图片及其描述和来源。
元数据
Slug autoglm-search-image
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Autoglm Search Image 是什么?

使用 AutoGLM 搜图接口,根据用户输入的关键词搜索相关图片。当用户需要搜索图片、查找图片素材等场景时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 31 次。

如何安装 Autoglm Search Image?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install autoglm-search-image」即可一键安装,无需额外配置。

Autoglm Search Image 是免费的吗?

是的,Autoglm Search Image 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Autoglm Search Image 支持哪些平台?

Autoglm Search Image 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Autoglm Search Image?

由 flyfujian(@flyfujian)开发并维护,当前版本 v1.0.0。

💬 留言讨论