npx skills add majiayu000/claude-skill-registry --skill langchain-integrations-tools --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# langchain-tools (JavaScript/TypeScript) ## 概述 工具使 LLM 能够与外部系统交互、执行计算、搜索网络、查询数据库等。它们将模型能力扩展到文本生成之外,使 Agent 真正具备可执行性。 ### 核心概念 - **工具(Tools)**:Agent 可以调用的函数,用于执行特定任务 - **工具调用(Tool Calling)**:模型根据用户查询决定何时以及如何使用工具 - **工具包(Toolkits)**:相关工具的集合 - **工具模式(Tool Schema)**:使用 Zod 或 JSON Schema 描述工具参数 ## 工具选择决策表 | 工具/工具包 | 最适用于 | 包 | 主要特性 | |--------------|----------|---------|--------------| | **Tavily 搜索** | 网络搜索 | `@langchain/community` | AI 优化的搜索 API | | **Wikipedia** | 百科全书查询 | `@langchain/community` | Wikipedia API 访问 | | **计算器(Calculator)** | 数学运算 | `@langchain/community` | 表达式求值 | | **DuckDuckGo 搜索** | 注重隐私的搜索 | `@langchain/community` | 无需 API 密钥 | | **浏览器工具** | 网页自动化 | `@langchain/community` | 无头浏览器 | | **向量存储工具** | 语义搜索 | 基于向量存储 | 查询您自己的数据 | | **自定义工具** | 您的特定需求 | `@langchain/core/tools` | 定义任何函数 | ### 何时选择各工具 **选择 Tavily 如果:** - 您需要高质量的网络搜索 - 您希望获得 AI 优化的结果 - 您正在构建研究/RAG 应用程序 **选择 Wikipedia 如果:** - 您需要百科全书式知识 - 需要事实性信息 - 免费,无需 API 密钥 **选择自定义工具如果:** - 您有特定的业务逻辑 - 您需要集成专有系统 - 内置工具无法满足您的需求 ## 代码示例 ### Tavily 搜索工具 ```typescript import { TavilySearchResults } from "@langchain/community/tools/tavily_search"; // 初始化 Tavily(需要 API 密钥) const searchTool = new TavilySearchResults({ maxResults
- 概述
- 核心概念
- 工具选择决策表
- 何时选择各工具
- 代码示例
- Tavily 搜索工具
- Wikipedia 工具
- 计算器工具
- DuckDuckGo 搜索(无需 API 密钥)
- 使用 Zod 模式的自定义工具
- 自定义工具 - 基于类
- 将向量存储作为工具
- 多工具示例
- 带错误处理的工具
npm install @langchain/community npm install @langchain/core npm install @langchain/openai # 用于基于 OpenAI 的工具
What does the langchain-tools skill do?
LangChain 工具集成使用指南,包括预构建工具包、Tavily、Wikipedia 和自定义工具
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill langchain-integrations-tools --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
