{"category":"web-context","description":"Fetches up-to-date documentation snippets for a resolved Context7 library ID, optionally focused on a topic, with a bounded token budget per request.","guardrails":["token budget capped at 5000","single library per request"],"inputExample":{"libraryId":"/honojs/hono","topic":"middleware"},"method":"POST","outputFields":["docs"],"path":"/services/context7/query-docs","payment":{"devMode":false,"enforced":true,"network":"eip155:84532","protocol":"x402"},"price":"$0.01","priceUsd":0.01,"pricingNote":"Priced against Context7 Pro included-call economics. Token budget is capped at 5000 per request.","providers":[{"docsUrl":"https://context7.com/docs","label":"Context7","name":"context7","role":"primary"}],"slug":"context7-query-docs","summary":"Current library docs for a Context7 library ID and topic.","tags":["docs","libraries","context7"],"title":"Context7 Query Docs","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"libraryId":{"type":"string","pattern":"^\\/[\\w.-]+\\/[\\w.-]+(?:\\/[\\w.-]+)?$"},"tokens":{"default":2500,"type":"integer","minimum":500,"maximum":5000},"topic":{"type":"string","maxLength":200}},"required":["libraryId"],"additionalProperties":false}}