---
title: "获取智能体可选工具"
method: GET
path: "/agents/tools"
tags: ["智能体"]
---

# 获取智能体可选工具

`GET /agents/tools`

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/agents/tools`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

返回编辑器可勾选的内置工具（含分组和知识库能力要求）、工具列表未设置时生效的默认工具，以及由开关控制、写入工具列表也不生效的工具

## Response `200`

工具目录

- object
  - `data` GithubComTencentWeKnoraInternalAgentToolsAgentToolCatalog
    - `default_tools` string[]: DefaultTools apply when an agent's allowed_tools was never set (null).
    - `switch_managed_tools` string[]: SwitchManagedTools follow other agent settings; naming them in the list does not register them.
    - `tools` GithubComTencentWeKnoraInternalAgentToolsAgentToolInfo[]: Tools are the selectable tools, in display order.
      - `danger` boolean: Danger marks tools that modify content, which the editor highlights.
      - `description` string
      - `group` string
      - `label` string
      - `name` string
      - `requirement` GithubComTencentWeKnoraInternalAgentToolsAgentToolRequirement
        - `all_of` GithubComTencentWeKnoraInternalAgentToolsKBCapability[]
        - `any_of` GithubComTencentWeKnoraInternalAgentToolsKBCapability[]
  - `success` boolean

## Changes

- **2026-10-13** `2c92c91d1c7d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/agents/tools/get.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) - [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/weknora-api/revisions/685d1f9fce30?raw)
