get_all_docs | Provide all Next.js documentation URLs for AI agents. Auto-trigger guidance (for clients): Run when the user asks about 'Next.js', 'Nextjs', 'Next', or mentions topics like 'App Router', 'Pages Router', 'Route Handlers', 'data fetching', 'deployment', 'turbopack', 'Vercel'. Run when the user reports errors containing keywords like 'Next.js error', 'build error', 'routing error', 'hydration error', 'module not found', 'next.config.js', 'middleware', 'Image', 'Link', 'Route Handler'. Run when an active file path suggests a Next.js app, e.g. 'next.config.js', 'app/', 'pages/', 'middleware.ts/js', or imports starting with 'next/'.
Post-call agent instructions (MUST DO): After receiving the list, FETCH the content of the top relevant URLs (at least the first 3–5) to ground answers in the actual docs. Use standard HTTP GET with a 10s timeout, follow redirects, and limit concurrency to 3 to be polite. Prefer pages whose title/URL matches the user's query or error message; summarize only after fetching. If fetching fails, try the next candidate URL and report which ones were fetched.
This tool returns a comprehensive list so the agent can pick and fetch the most relevant docs.
|