> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Tavily Search

> 通过 AIsa 运行可配置的 Tavily 网页搜索。

[在 GitHub 上查看 ->](https://github.com/AIsa-team/agent-skills/tree/main/search-research/tavily-search)

**通过 Tavily 进行灵活网页搜索。** 使用 AIsa 托管访问能力，运行聚焦的网页、新闻和域名搜索。

## 安装

如果还没有安装 AIsa CLI，请先安装：

```bash theme={null}
npm install -g @aisa-one/cli
```

然后安装该技能：

```bash theme={null}
aisa skills install tavily-search
```

## 智能体可以用它做什么？

> [card] 实时网页搜索
>
> 为查询查找新鲜网页结果。

> [card] 域名过滤
>
> 包含或排除域名，实现聚焦检索。

> [card] 时间窗口
>
> 在相关时效范围内搜索。

> [card] 主题过滤
>
> 将搜索缩小到合适的来源类型。

## 设置

该技能需要 `AISA_API_KEY` 环境变量。作为 Claude 插件安装时，key 会通过插件的 `userConfig` 配置。

## 用法

用 `tavily` 子命令运行搜索客户端：

```bash theme={null}
python3 ${CLAUDE_PLUGIN_ROOT}/skills/tavily-search/scripts/search_client.py tavily --query "<search query>" [options]
```

### 参数

| 参数 | 必填 | 默认值 | 说明 |
| - | - | - | - |
| `--query` / `-q` | Yes | — | 搜索查询 |
| `--count` / `-c` | No | 5 | 最大结果数（1–20） |
| `--depth` | No | basic | 搜索深度：`basic`、`advanced`、`fast`、`ultra-fast` |
| `--topic` | No | — | 主题过滤：`general`、`news`、`finance` |
| `--time-range` | No | — | 时间范围过滤 |
| `--include-answer` | No | false | 包含 LLM 生成的答案摘要 |

### 示例

```bash theme={null}
# 基础搜索
python3 ${CLAUDE_PLUGIN_ROOT}/skills/tavily-search/scripts/search_client.py tavily --query "OpenAI latest announcements" --count 10

# 带答案的高级新闻搜索
python3 ${CLAUDE_PLUGIN_ROOT}/skills/tavily-search/scripts/search_client.py tavily --query "AI regulation 2026" --depth advanced --topic news --include-answer

# 面向金融的搜索
python3 ${CLAUDE_PLUGIN_ROOT}/skills/tavily-search/scripts/search_client.py tavily --query "NVIDIA earnings Q1 2026" --topic finance --include-answer
```

## 输出

脚本会打印结构化结果，包括：

* **Title** — 页面标题
* **URL** — 直链
* **Date** — 发布日期（如可用）
* **Content** — 相关摘录
* **Answer** — LLM 生成的摘要（使用 `--include-answer` 时）

## 何时使用

当用户需要带特定过滤要求的高级搜索时使用该技能：仅新闻结果、面向金融的结果、有时间边界的搜索，或希望在原始结果旁获得 AI 生成答案。它是插件中功能最丰富的搜索工具。

## 开始使用

1. 在 [aisa.one](https://aisa.one) 注册（新账户有 \$1 免费额度）。
2. 从控制台生成 API key。
3. 设置 key 并安装技能：
   ```bash theme={null}
   export AISA_API_KEY="your-key"
   npm install -g @aisa-one/cli
   aisa skills install tavily-search
   ```
4. 启动新的智能体会话，让运行时加载更新后的技能说明。

## 相关

> [card] [Tavily Search API](https://aisa.one/docs/api-reference/search/post_tavily-search.md)
>
> Tavily search 的端点参考。

> [card] [AIsa Tavily Extract](https://aisa.one/docs/zh/agent-skills/tavily-extract.md)
>
> 从选定 URL 提取完整内容。

> [card] [AIsa Web Search](https://aisa.one/docs/zh/agent-skills/web-search.md)
>
> 带结构化结果的通用网页搜索。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.