← 返回
开发者工具 中文

Context7 API Documentation Fetcher

Fetch up-to-date library documentation via Context7 API. Use PROACTIVELY when: (1) Working with ANY external library (React, Next.js, Supabase, etc.) (2) User asks about library APIs, patterns, or best practices (3) Implementing features that rely on third-party packages (4) Debugging library-specific issues (5) Need current documentation beyond training data cutoff Always prefer this over guessing library APIs or using outdated knowledge.
通过 Context7 API 获取最新库文档。在以下情况主动使用:(1) 使用任何外部库时;(2) 用户询问库 API、模式或最佳实践时;(3) 实现依赖第三方包的功能时;(4) 调试库特定问题时;(5) 需要训练数据截止日期后的最新文档时。始终优先使用此工具,而非猜测 API 或使用过时知识。
am-will am-will 来源
开发者工具 clawhub v1.0.0 1 版本 99962.9 Key: 无需
★ 0
Stars
📥 2,691
下载
💾 7
安装
1
版本
#latest

概述

Context7 Documentation Fetcher

Retrieve current library documentation via Context7 API.

Workflow

1. Search for the library

python3 ~/.claude/skills/context7/scripts/context7.py search "<library-name>"

Example:

python3 ~/.claude/skills/context7/scripts/context7.py search "next.js"

Returns library metadata including the id field needed for step 2.

2. Fetch documentation context

python3 ~/.claude/skills/context7/scripts/context7.py context "<library-id>" "<query>"

Example:

python3 ~/.claude/skills/context7/scripts/context7.py context "/vercel/next.js" "app router middleware"

Options:

  • --type txt|md - Output format (default: txt)
  • --tokens N - Limit response tokens

Quick Reference

TaskCommand
---------------
Find React docssearch "react"
Get React hooks infocontext "/facebook/react" "useEffect cleanup"
Find Supabasesearch "supabase"
Get Supabase authcontext "/supabase/supabase" "authentication row level security"

When to Use

  • Before implementing any library-dependent feature
  • When unsure about current API signatures
  • For library version-specific behavior
  • To verify best practices and patterns

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 13:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

web-tools-guide

user_ec205dbb
MANDATORY before calling web_search, web_fetch, browser, or opencli. Contains required error-handling procedures (web_se
★ 57 📥 153,171
knowledge-management

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 438 📥 104,248
knowledge-management

Baidu web search

ide-rea
使用百度AI搜索引擎(BDSE)进行网络搜索。适用于获取实时信息、文档资料或研究课题。
★ 242 📥 106,523