Documentation Lookup Retrieve current documentation and code examples for any library using the Context7 CLI. Run commands with so setup always uses the latest CLI without a global install: Optionally install globally if you prefer a bare command: Workflow Two-step process: resolve the library name to an ID, then query docs with that ID. You MUST call first to obtain a valid library ID UNLESS the user explicitly provides a library ID in the format or . IMPORTANT: Do not run these commands more than 3 times per question. If you cannot find what you need after 3 attempts, use the best result yo…