DifyToolSchema

更新时间:
复制 MD 格式

Parameter

Type

Description

Example

object

Defines the schema for a tool. This schema specifies the tool's name, purpose, and input/output structures.

name

string

The name of the tool. This name must be unique within the tool set.

description

string

A detailed explanation of the tool's purpose, capabilities, and ideal use cases. The model uses this description to determine when to call the tool.

inputSchema

object

A JSON Schema object that defines the tool's input parameters.

outputSchema

object

A JSON Schema object that defines the structure of the tool's output. This allows the model to interpret the tool's response.