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.