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.
Parameters
required
Returns
Partial<ChatToolMap>Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
createChatTools(__namedParameters: ChatToolsOptions): Partial<ChatToolMap>
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.',
})
Partial<ChatToolMap>Was this page helpful?