Open History to see the last commit
1import { toolDefinition } from '@tanstack/ai'
2import { z } from 'zod'
3
4export const clientContextToolDefinition = toolDefinition({
5 name: 'get_client_context',
6 description: 'Get context that is only available in the browser',
7 inputSchema: z.object({}),
8 outputSchema: z.object({ context: z.string() }),
9})