# list_agent_templates

> 这个 AirBuild MCP 工具列出团队可以雇用的智能体模板，包括空白的自定义模板。

Source: https://air.build/cn/docs/mcp-tools/list_agent_templates/

`list_agent_templates` 列出团队可以雇用的智能体。每个都是一个模板，带有名称、角色和简介；[hire_agent](https://air.build/cn/docs/mcp-tools/hire_agent/) 接受它的 `templateId`。`custom` 模板是空白模板，用于你从零开始定义、使用自己的名称、角色和指令的智能体。列表对每个团队都相同，所以工具没有输入。它不雇用任何智能体。

| 只读 | 破坏性 | 幂等 |
| --- | --- | --- |
| 是 | 否 | 是 |

## 输入

没有输入。

## 结果

| 字段 | 说明 |
| --- | --- |
| `templates` | 你可以雇用的模板 |
| `templates[].templateId` | 模板的 ID（UUID）。把它传给 [hire_agent](https://air.build/cn/docs/mcp-tools/hire_agent/) |
| `templates[].key` | 它的简短 key，例如 `custom`。从它雇用的智能体会把它用作 `agentId`，除非你另选一个 |
| `templates[].name` | 从它雇用的智能体的初始名称 |
| `templates[].role` | 一句话：从它雇用的智能体做什么 |
| `templates[].bio` | 从它雇用的智能体负责的领域 |

```json
{
  "templates": [
    {
      "templateId": "00000000-0000-0000-0000-000000000000",
      "key": "designer",
      "name": "Designer",
      "role": "Designs the app's screens",
      "bio": "Layout, icons and colours."
    },
    {
      "templateId": "00000000-0000-0000-0000-000000000000",
      "key": "custom",
      "name": "Custom",
      "role": "<role>",
      "bio": "<bio>"
    }
  ]
}
```

## 错误

这个工具没有自己的错误。所有工具都可能返回的错误见 [服务器与登录](https://air.build/cn/docs/mcp-tools/server/#errors)。

## 示例

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