get_project_context
Captures the user's project architecture to inform i18n implementation strategy.
When to Use
Called during i18n_checklist Step 1.
The checklist tool will tell you when to call this. If you're implementing i18n:
Call i18n_checklist(step_number=1, done=false) FIRST
The checklist will instruct you to call THIS tool
Then use the results for subsequent steps
Do NOT call this before calling the checklist tool
Why This Matters
Frameworks handle i18n through completely different mechanisms. The same outcome (locale-aware routing) requires different code for Next.js vs TanStack Start vs React Router. Without accurate detection, you'll implement patterns that don't work.
How to Use
Examine the user's project files (package.json, directories, config files)
Identify framework markers and version
Construct a detectionResults object matching the schema
Call this tool with your findings
Store the returned framework identifier for get_framework_docs calls
The schema requires:
framework: Exact variant (nextjs-app-router, nextjs-pages-router, tanstack-start, react-router)
majorVersion: Specific version number (13-16 for Next.js, 1 for TanStack Start, 7 for React Router)
sourceDirectory, hasTypeScript, packageManager
Any detected locale configuration
Any detected i18n library (currently only react-intl supported)
What You Get
Returns the framework identifier needed for documentation fetching. The 'framework' field in the response is the exact string you'll use with get_framework_docs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| detectionResults | Yes |