> ## 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

# AIsa Web Search

> 返回包含标题、URL 和摘要片段的当前网页搜索结果。

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

**简单的实时网页搜索。** 通过 AIsa 的 web search 端点返回结构化标题、URL 和摘要片段。

## 安装

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

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

然后安装该技能：

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

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

> [card] 实时查询
>
> 搜索网页来源，获取最新信息。

> [card] 结构化结果
>
> 返回标题、URL 和摘要片段，便于智能体复核。

> [card] 来源发现
>
> 在写作或分析前查找来源。

> [card] 研究交接
>
> 将结构化链接输入到更大的工作流中。

## 设置

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

## 用法

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

```bash theme={null}
python3 ${CLAUDE_PLUGIN_ROOT}/skills/web-search/scripts/search_client.py web --query "<search query>" --count <max_results>
```

### 参数

| 参数 | 必填 | 默认值 | 说明 |
| - | - | - | - |
| `--query` / `-q` | Yes | — | 搜索查询字符串 |
| `--count` / `-c` | No | 10 | 最大结果数（1–100） |

### 示例

```bash theme={null}
python3 ${CLAUDE_PLUGIN_ROOT}/skills/web-search/scripts/search_client.py web --query "latest AI agent frameworks 2026" --count 5
```

## 输出

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

* **Title** — 页面标题
* **URL** — 来源直链
* **Snippet** — 与查询相关的内容片段

## 何时使用

当用户要求搜索网页、在线查找信息、查询近期事件，或需要通用网页结果时使用该技能。它是最通用的广泛查询搜索工具。

## 开始使用

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 web-search
   ```
4. 启动新的智能体会话，让运行时加载更新后的技能说明。

## 相关

> [card] [AIsa Smart Search](https://aisa.one/docs/zh/agent-skills/smart-search.md)
>
> 混合网页与学术检索。

> [card] [Tavily Search](https://aisa.one/docs/zh/agent-skills/tavily-search.md)
>
> 带深度和过滤控制的网页搜索。

> [card] [多源搜索](https://aisa.one/docs/zh/agent-skills/multi-source-search.md)
>
> 使用多个 provider 获得更广搜索覆盖。


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