Skip to main content

Context7

Shanone’s Context7 integration gives your agent 3 tools for pulling current, version-accurate documentation and code snippets directly from library source — useful for avoiding outdated API knowledge baked into a model’s training data.

Getting Started

1

Get a Context7 API Key

Sign up at context7.com and generate an API Key from your account.
2

Add it to Shanone

Open Integrations in the Shanone dashboard, select Context7, and paste in the API Key.
3

Retry your request

Once saved, shanone_execute_tool calls for context7_* tools will succeed.

Available Tools

Shanone provides 3 tools for Context7:
context7_search_library, context7_get_docs, context7_get_code_snippets

Common Use Cases

Accurate API usage

Pull the current signature/usage of a library function before writing code against it

Framework migrations

Fetch version-specific docs when upgrading a dependency to confirm breaking changes

Unfamiliar library onboarding

Search for a library and retrieve topic-filtered code snippets to learn its API quickly

Code review assistance

Cross-check a PR’s usage of a library against its actual documented behavior

Troubleshooting

The library_id must come from context7_search_library first — Context7 library IDs follow a /owner/repo format and aren’t guessable from the package name alone.
Pass an explicit version parameter (e.g. v18.2.0) if you need snippets tied to a specific release; without it, Context7 returns snippets across all indexed versions.
Context7’s free tier has a request-per-minute cap; space out calls or upgrade the plan on context7.com if you’re running high-volume documentation lookups.