ai-core/tool-calling

Official

Streamline AI tool approvals and discovery

AuthorTanStack
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Tool calling often breaks because server-only tool implementations, client callbacks, approval flows, and lazy discovery must remain aligned, and this skill explains how to share definitions and orchestrate them so server chat agents and client interfaces react in sync.

Core Features & Use Cases

  • Shared definitions with Zod schemas describe tool inputs and outputs once for both server execution and client invocation so adapters see the same contract.
  • Server-only tools, client-only tools, and hybrid definitions teach how to register tools with chat routes and expose client callbacks that render tool call parts in the UI and update state.
  • Approval flows and lazy discovery sections show how to pause execution for user consent, respond with approval data, and let seldom-used tools register themselves on demand.

Quick Start

Ask the AI to call getProducts and updateCartUI so the model fetches products and refreshes the cart counter.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ai-core/tool-calling
Download link: https://github.com/TanStack/ai/archive/main.zip#ai-core-tool-calling

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.