ai-core/tool-calling
Installation
SKILL.md
Tool Calling
This skill builds on ai-core. Read it first for critical rules.
Setup
Complete end-to-end example: shared definition, server tool, client tool, server route, React client. The four files below share one scope, so later files use the earlier exports directly.
// tools/definitions.ts
import { toolDefinition } from '@tanstack/ai'
import { z } from 'zod'