Create a set of Chat SDK tools for the Vercel AI SDK.Lets an AI agent operate inside a workspace: read messages, post replies,
send DMs, react, edit, delete, and manage thread subscriptions across
every adapter the supplied ChatBinding has registered.Write operations and arbitrary user profile lookups require approval by
default. Control this globally or per-tool via requireApproval. Use
preset to scope the toolset.Using TanStack AI instead? Import createTanStackTools from
chat/ai/tanstack; it exposes the same tools, options, and presets.
import { Chat } from 'chat'import { createChatTools } from 'chat/ai'import { generateText } from 'ai'const chat = new Chat({ ... })const result = await generateText({ model: yourModel, tools: createChatTools({ chat, preset: 'messenger' }), prompt: 'Reply in thread slack:C123:1234.5678 with the daily summary.',})