Files
memind/.runtime/portal/skills/web/SKILL.md
2026-07-03 00:34:03 +08:00

35 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: web
description: 网页抓取与搜索技能:访问网页、查阅文档、搜索互联网
---
# 网页访问
使用内置 `web` 平台扩展获取网页内容和搜索信息。
## 何时使用
- 用户要查某个 API 文档、库的用法
- 用户要搜索最新新闻、技术资料
- 需要验证某个 URL 的内容
## 工具
| 工具 | 用途 |
|------|------|
| `fetch_url` | 抓取指定 URL 的内容,可提取纯文本 |
| `web_search` | 通过 DuckDuckGo 搜索,返回标题/摘要/链接列表 |
## 规则
1. 优先用 `web_search` 探索,再用 `fetch_url` 读取具体页面
2. `extract_text: true`(默认)获取可读文本,`false` 获取原始 HTML
3. 不要访问不明来源的链接,向用户确认后再访问
4. 官方文档优先于第三方博客
## 国内网络环境(建议)
- 生产环境访问不了 `google.com`,优先用本技能的 `web_search`DuckDuckGo/`fetch_url`,避免直接拿 `computercontroller__web_scrape` 抓 Google 页面来回重试
- `web_search` 连续几次没有可用结果时,改用 `fetch_url` 直接访问 `https://cn.bing.com/search?q=...``https://www.so.com/s?q=...` 这类国内可达的搜索入口
- 百度/知乎/大众点评等站点有反爬拦截,遇到跳转或空结果就换个搜索源,不必在同一个来源上反复硬抓