Strands Agents Typescript SDK
    Preparing search index...

    Interface ToolSpec

    Specification for a tool that can be used by the model. Defines the tool's name, description, and input schema.

    interface ToolSpec {
        name: string;
        description: string;
        inputSchema?: JSONSchema7;
    }
    Index

    Properties

    name: string

    The unique name of the tool.

    description: string

    A description of what the tool does. This helps the model understand when to use the tool.

    inputSchema?: JSONSchema7

    JSON Schema defining the expected input structure for the tool. If omitted, defaults to an empty object schema allowing no input parameters.