Skip to content

Interface: ChatToolSpec

Defined in: packages/design-system/lib/assistant-ui/components/mw/Chat/index.d.ts:171

A tool the assistant can choose to invoke. The model picks one per turn (via Chrome's structured-output on chrome-ai, or native function-calling on an API provider); the engine then calls ChatProps.onToolCall with the chosen name + args.

Properties

PropertyTypeDescriptionDefined in
descriptionstringNatural-language description — the model reads this to choose.packages/design-system/lib/assistant-ui/components/mw/Chat/index.d.ts:173
namestringStable identifier the model selects.packages/design-system/lib/assistant-ui/components/mw/Chat/index.d.ts:175
inputSchema?unknownJSON Schema describing the tool's input arguments (derived from the SDK-side Zod schema). Used to constrain the model's structured output so it produces typed args, not just a single prompt string. When omitted, the input defaults to {prompt: string}.packages/design-system/lib/assistant-ui/components/mw/Chat/index.d.ts:182

Matterway Assistant SDK Documentation