pi-web-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWeb Search
网络搜索
The package is installed globally. Zero-config via Exa MCP (no API key), with fallback Exa → Perplexity → Gemini.
pi-web-accesspi-web-accessCRITICAL: always pass workflow: "none"
workflow: "none"重要提示:务必传入workflow: "none"
workflow: "none"Every call MUST include . This skips the interactive browser curator popup (the user does not want it opening). No exceptions — single query or batched , always set .
web_searchworkflow: "none"queriesworkflow: "none"web_search({ queries: ["query 1", "query 2"], workflow: "none" })每次调用都必须包含。这会跳过交互式浏览器管理弹窗(用户不希望它弹出)。无例外——无论是单个查询还是批量,始终设置。
web_searchworkflow: "none"queriesworkflow: "none"web_search({ queries: ["query 1", "query 2"], workflow: "none" })Tools
工具列表
- — search the web; returns synthesized answers with citations. Can be called many times per turn. Always pass
web_search.workflow: "none" - — zero-key Exa code-context. Use for library/API/code lookups instead of generic
code_search.web_search - — fetch URL(s) → markdown; handles PDFs, YouTube, GitHub.
fetch_content - — big pages (>30k chars) are truncated in responses but stored in full; call this to pull the rest on demand so they don't blow context.
get_search_content
- —— 网络搜索;返回带引用的综合回答。每轮可多次调用。务必传入
web_search。workflow: "none" - —— 无需密钥的Exa代码上下文查询。用于库/API/代码查找,而非通用
code_search。web_search - —— 获取URL内容并转换为markdown格式;支持PDF、YouTube、GitHub。
fetch_content - —— 大页面(超过30000字符)在响应中会被截断,但完整内容已存储;按需调用此工具可获取剩余内容,避免占用过多上下文空间。
get_search_content
fetch_content specifics
fetch_content 细节说明
- GitHub URLs are cloned, not scraped — you get real files + a local path to explore with /
read(private repos need thebashCLI). Use this for dev work.gh - PDFs → auto-extracted to markdown in , readable in sections (text-only, no OCR).
~/Downloads/ - YouTube/video → full raw transcripts + frame extraction. Needs a (not zero-config); frame extraction also needs
GEMINI_API_KEY/ffmpeg.yt-dlp
- GitHub URL采用克隆而非抓取 —— 你将获得真实文件以及可通过/
read探索的本地路径(私有仓库需要bashCLI)。适用于开发工作。gh - PDF → 自动提取为markdown格式并保存至,可分段读取(仅文本,无OCR功能)。
~/Downloads/ - YouTube/视频 → 完整原始转录文本 + 帧提取。需要(非零配置);帧提取还需要
GEMINI_API_KEY/ffmpeg。yt-dlp
Routing — match the user's phrasing
路由规则——匹配用户表述
Always use the tool. These counts are HARD MINIMUMS — count your queries before answering and do not stop short:
web_search- "web search" → at least 2 queries, varied keywords/angles, then synthesize.
- "extensive web research" → at least 4 queries, totally different keywords and angles.
- "deep research" → at least 8 queries, totally different keywords and angles, run across 2–3 successive batches (refine angles after each batch), to learn as much as possible about the topic.
A single batched call counts each query in toward the total. If your first batch is under the minimum, fire another batch before synthesizing.
web_searchqueries[]始终使用工具。以下为最低查询次数要求——在回答前统计查询次数,不得低于要求:
web_search- “网络搜索” → 至少2次查询,使用不同关键词/角度,然后进行综合。
- “全面网络调研” → 至少4次查询,使用完全不同的关键词和角度。
- “深度调研” → 至少8次查询,使用完全不同的关键词和角度,分2–3批连续执行(每批后优化查询角度),以尽可能多地了解主题。
单次批量调用中,中的每个查询都计入总数。如果第一批查询次数未达最低要求,在综合回答前需发起另一批查询。
web_searchqueries[]Ranked results with URLs — DeepAPI web search
带URL的排名结果——DeepAPI网络搜索
web_searchbash
undefinedweb_searchbash
undefinedAuthenticate with your DeepAPI API key (see deepapi
skill)
deepapi使用你的DeepAPI API密钥进行认证(详见deepapi
技能)
deepapicurl -s --max-time 60 "https://deepapi.co/v1/search/web"
-H "Authorization: Bearer $DEEPAPI_API_KEY" -H "Content-Type: application/json"
-H "Idempotency-Key: $(uuidgen)"
-d '{"query": "your search terms", "maxResults": 5, "maxCostUsd": "0.05"}'
-H "Authorization: Bearer $DEEPAPI_API_KEY" -H "Content-Type: application/json"
-H "Idempotency-Key: $(uuidgen)"
-d '{"query": "your search terms", "maxResults": 5, "maxCostUsd": "0.05"}'
Results are in `.output` (title, url, snippet per item). Query under 500 chars. Full details: `deepapi` skill.curl -s --max-time 60 "https://deepapi.co/v1/search/web"
-H "Authorization: Bearer $DEEPAPI_API_KEY" -H "Content-Type: application/json"
-H "Idempotency-Key: $(uuidgen)"
-d '{"query": "your search terms", "maxResults": 5, "maxCostUsd": "0.05"}'
-H "Authorization: Bearer $DEEPAPI_API_KEY" -H "Content-Type: application/json"
-H "Idempotency-Key: $(uuidgen)"
-d '{"query": "your search terms", "maxResults": 5, "maxCostUsd": "0.05"}'
结果位于`.output`中(每个条目包含标题、url、摘要)。查询内容需少于500字符。详细信息请查看`deepapi`技能。