ToolDefinitionDict¶
Dictionary Type¶
ToolDefinitionDict
¶
Bases: TypedDict
Dictionary form of ToolDefinition.
Attributes¶
description
instance-attribute
¶
The description of the tool. This description provides information about the purpose and usage of the tool.
input_schema
instance-attribute
¶
input_schema: Required[SchemaDefinition | SchemaDefinitionDict]
The input schema for the tool. This schema defines the structure of the input that the tool accepts.
name
instance-attribute
¶
The name of the tool. This name identifies the tool in the Model Context Protocol.
output_schema
instance-attribute
¶
output_schema: SchemaDefinition | SchemaDefinitionDict | None
The output schema for the tool. This schema defines the structure of the output that the tool produces.