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

# 获取可用工具列表

> 返回所有对外公开的 AI 工具及其配置要求。响应会被缓存 1 小时。



## OpenAPI

````yaml api-reference/openapi-huajune.json get /tools
openapi: 3.1.0
info:
  title: 华骏智能招聘 API
  description: 华骏智能招聘助手的 Open API 接口文档，提供模型管理、对话、工具、配置等功能
  version: 1.0.0
  contact:
    name: 华骏科技
    url: https://huajune.duliday.com
servers:
  - url: https://huajune.duliday.com/api/v1
    description: 生产环境
security:
  - bearerAuth: []
tags:
  - name: Models
    description: 模型管理相关接口
  - name: Chat
    description: AI 对话相关接口
  - name: Tools
    description: 工具管理相关接口
  - name: Configuration
    description: 配置管理相关接口
paths:
  /tools:
    get:
      tags:
        - Tools
      summary: 获取可用工具列表
      description: 返回所有对外公开的 AI 工具及其配置要求。响应会被缓存 1 小时。
      operationId: getTools
      responses:
        '200':
          description: 成功获取工具列表
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      tools:
                        type: array
                        items:
                          $ref: '#/components/schemas/Tool'
          headers:
            X-Correlation-Id:
              description: 请求关联 ID
              schema:
                type: string
            Cache-Control:
              description: 缓存控制策略
              schema:
                type: string
                example: public, max-age=3600
        '401':
          $ref: '#/components/responses/UnauthorizedError'
components:
  schemas:
    Tool:
      type: object
      required:
        - name
        - description
        - category
        - requiresSandbox
        - requiredContext
      properties:
        name:
          type: string
          description: 工具名称
          example: zhipin_reply_generator
        description:
          type: string
          description: 工具功能描述
          example: 生成智能招聘回复
        category:
          type: string
          description: 工具分类
          enum:
            - universal
            - communication
            - business
            - yupao
            - duliday
          example: business
        requiresSandbox:
          type: boolean
          description: 是否需要沙箱环境（需要提供 sandboxId）
          example: false
        requiredContext:
          type: array
          description: 工具所需的上下文字段列表。这些字段必须在 context 或 toolContext 中提供。
          items:
            type: string
          example:
            - configData
            - replyPrompts
  responses:
    UnauthorizedError:
      description: 未授权 - API Key 无效或缺失
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Unauthorized
              message:
                type: string
                example: Invalid or missing API key
              statusCode:
                type: integer
                example: 401
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 使用 Bearer Token 进行认证，格式：`Bearer YOUR_API_KEY`

````