---
title: "Discussion on \"Vercel AI SDK Tool Calling Cheat Sheet\" | Hashnode"
description: "Discussion on \"Vercel AI SDK Tool Calling Cheat Sheet\". 1. Basic Tool Definition\nimport { z } from \"zod\";\nimport { tool, generateText } from \"ai\";\n\n// Define a tool\nconst weatherTool = tool({\n  description: \"Get weather for a location\",\n  parameters: z.object({\n    location: z.string().describe(\"City name..."
url: "https://hashnode.com/posts/vercel-ai-sdk-tool-calling-cheat-sheet/67ce6bdaa53cade55e7045cd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Vercel AI SDK Tool Calling Cheat Sheet](https://tigerabrodi.blog/vercel-ai-sdk-tool-calling-cheat-sheet?utm_source=hashnode&utm_medium=feed)

1\. Basic Tool Definition import { z } from "zod"; import { tool, generateText } from "ai"; // Define a tool const weatherTool = tool({ description: "Get weather for a location", parameters: z.object({ location: z.string().describe("City name...

Mar 10, 2025 · 3 min read · tigerabrodi.blog  
Read the article

-   [#vercel](https://hashnode.com/tag/vercel)
-   [#ai](https://hashnode.com/tag/ai)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#ai-tools](https://hashnode.com/tag/ai-tools)

## Written by

[Tiger Abrodi](https://hashnode.com/@tigerabrodi)

@tigerabrodi · Germany

  
[View profile](https://hashnode.com/@tigerabrodi)

Obsessed with crafting software.

Just a guy who loves to write code and watch anime.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
