# list_models

> 這個 AirBuild MCP 工具會列出 Agent 可以使用的 AI 模型，供 hire_agent 和 update_agent 使用。

Source: https://air.build/tw/docs/mcp-tools/list_models/

`list_models` 會列出 Agent 可以使用的 AI 模型。請把模型的 `model` ID 傳給 [hire_agent](https://air.build/tw/docs/mcp-tools/hire_agent/) 或 [update_agent](https://air.build/tw/docs/mcp-tools/update_agent/)。清單對所有人都相同，所以它沒有輸入。它不做任何變更。

清單分為兩部分。首先是 AirBuild 為你執行的模型。然後是使用你自己的 AI 金鑰或訂閱執行的模型：它們的 ID 以 `byok:` 開頭，設定為這類模型的 Agent 會使用團隊擁有者在 AirBuild 中連接的金鑰或訂閱執行（請參閱 [使用你自己的 AI 金鑰或訂閱](https://air.build/tw/docs/team/use-your-own-ai-key/)）。

| 唯讀 | 破壞性 | 冪等 |
| --- | --- | --- |
| 是 | 否 | 是 |

## 輸入

沒有輸入。

## 結果

| 欄位 | 說明 |
| --- | --- |
| `models` | 模型，依 App 中顯示的順序排列 |
| `models[].model` | 模型的 ID：把它作為 `model` 傳給 [hire_agent](https://air.build/tw/docs/mcp-tools/hire_agent/) 或 [update_agent](https://air.build/tw/docs/mcp-tools/update_agent/)。以 `byok:` 開頭的 ID 會使用你自己的金鑰或訂閱執行 |
| `models[].name` | App 中顯示的名稱 |
| `models[].provider` | 提供者，依目錄中的名稱。對於 `byok:` 模型，為 `byok:` 加上它登入的帳號類型 |
| `models[].description` | 簡短說明；`byok:` 模型為空 |

```json
{
  "models": [
    { "model": "<model id>", "name": "<model name>", "provider": "<provider>", "description": "<what it is good at>" },
    { "model": "byok:<account>/<model id>", "name": "<model name>", "provider": "byok:<account>", "description": "" }
  ]
}
```

## 錯誤

這個工具沒有自己的錯誤。所有工具都可能傳回的錯誤，請參閱 [伺服器與登入](https://air.build/tw/docs/mcp-tools/server/#errors)。

## 範例

```json
{"name": "list_models", "arguments": {}}
```
