ai-workspace-lab/xworkspace-core-skills / skills/marketplace/autoglm-websearch
autoglm-websearch
Verified使用 AutoGLM Web Search 接口进行网络信息搜索。当用户需要联网搜索、查询最新资讯、检索网页内容或获取实时信息时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
AutoGLM WebSearch Skill
调用 AutoGLM Web Search API 进行网络搜索。
Token 获取
脚本启动时自动向本地服务发起 HTTP GET 请求获取 token:
| 项目 | 内容 |
|---|---|
| 地址 | http://127.0.0.1:53699/get_token |
| 方式 | GET |
| 返回 | Bearer xxx(直接作为 Authorization 头使用) |
若返回值不含
Bearer前缀,脚本会自动补全。
Search API
| 项目 | 内容 |
|---|---|
| 地址 | https://autoglm-api.zhipuai.cn/agentdr/v1/assistant/skills/web-search |
| 方式 | POST |
| 请求体 | {"queries": [{"query": "<搜索词>"}]} |
签名 Headers(每次动态生成):
X-Auth-Appid:100003X-Auth-TimeStamp: 当前秒级 Unix 时间戳X-Auth-Sign: MD5(100003 + "&" + timestamp + "&" + 38d2391985e2369a5fb8227d8e6cd5e5)
执行脚本
使用同目录下的 websearch.py:
python websearch.py "搜索关键词"
返回结果处理
响应结构
{
"code": 0,
"msg": "SUCCESS",
"data": {
"results": [
{
"webPages": {
"value": [
{
"name": "页面标题",
"url": "页面链接",
"snippet": "摘要内容"
}
]
}
}
]
}
}
输出要求
1. 总结搜索内容
基于所有条目的 snippet 字段,提炼出与用户 query 相关的核心信息,用自然语言组织成简洁的回答。
2. 附加引用列表 在回答末尾附上参考来源:
**参考来源:**
1. [页面标题](页面链接)
2. [页面标题](页面链接)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |