SuperAPI AI 工具集

exa-cli

编程与开发

查看项目

更新于 10-15 20:34

技能介绍

用途:exa-cli 用于信息检索与编程资料检索,适用于技术调研、API 使用方式确认、示例代码查找等需要实时网页资料或代码上下文的场景。

主要能力:提供两个子命令。web-search-exa 执行实时网页搜索并返回结果与正文片段;get-code-context-exa 面向编程问题检索,返回高质量上下文信息。

使用方式:以当前 SKILL.md 所在文件夹为 workdir,将脚本直接当作可执行文件运行。网页搜索:scripts/exa-cli.py web-search-exa <query>;编程检索:scripts/exa-cli.py get-code-context-exa <query>。

web-search-exa 参数:必填 query;可选 --type(auto/fast/deep)、--livecrawl(fallback/preferred)、--num-results、--context-max-characters、--endpoint(默认 https://mcp.exa.ai/mcp)、--token(默认读取环境变量)、--timeout(默认 30.0)、--cache-ttl(默认 3600)、--no-cache、--json、--verbose。

get-code-context-exa 参数:必填 query;可选 --tokens-num、--endpoint(默认 https://mcp.exa.ai/mcp)、--token(默认读取环境变量)、--timeout(默认 30.0)、--cache-ttl(默认 3600)、--no-cache、--json、--verbose。

限制:资料未提供收费、价格、平台支持范围及具体效果说明;认证令牌默认从环境变量读取,需自行配置。