langchain-tools

Define and utilize LangChain tools with Zod schemas for agentic workflows.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/evanfang0054/x-codegen-agent --skill langchain-tools-evanfang0054
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langchain-tools
Source: https://github.com/evanfang0054/x-codegen-agent/tree/main/.claude/skills/langchain-tools
Command: npx skills add https://github.com/evanfang0054/x-codegen-agent --skill langchain-tools-evanfang0054

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langchain, zod, axios.

What problem does it solve?

This Skill simplifies the process of defining and utilizing tools within the LangChain framework, enabling agents to interact with external functionalities and data sources effectively.

Core Features & Use Cases

  • Tool Definition: Create custom tools from functions using decorators or StructuredTool.
  • Schema Definition: Define tool parameters and return types using Zod schemas for robust validation.
  • Built-in Tools: Leverage pre-built tools for common tasks like searching and code execution.
  • Use Case: An agent needs to search a customer database and then send an email. This Skill allows you to define search_database and send_email tools that the agent can then invoke.

Quick Start

Define a simple calculator tool using the tool() decorator with a function and a Zod schema.

Frequently Asked Questions about langchain-tools

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define custom tools in LangChain for agentic workflows?

To define custom tools in LangChain, you can create them from functions using the `tool()` decorator or `StructuredTool`. You must define the tool parameters and return types using Zod schemas to ensure robust validation and structured agent interaction.

Can I use Zod schemas to validate complex parameters for LangChain tools?

Yes, you can use Zod schemas to validate complex parameter definitions for LangChain tools. This Skill supports handling complex parameter definitions and asynchronous operations, ensuring agents receive properly validated inputs when interacting with external APIs.

What is the best way to let a LangChain agent interact with external APIs?

The best way to let a LangChain agent interact with external APIs is by defining well-defined tool interfaces. This Skill facilitates agent interaction with external data sources by allowing you to create custom tools that wrap API calls using Zod for schema validation.

Does LangChain support built-in tools for common tasks like searching and code execution?

Yes, LangChain supports leveraging pre-built tools for common tasks like searching and code execution. This Skill allows you to utilize these built-in tools alongside your custom defined tools to enable comprehensive agentic workflows.

How do I create a LangChain tool to search a database and send an email?

You can create a LangChain tool to search a database and send an email by defining custom `search_database` and `send_email` tools. Use the `tool()` decorator with Zod schemas to define the required inputs, allowing the agent to invoke them sequentially.