{ "includeInContext": ["docs/cursor-instructions.md"], "customInstructions": "Use the Tomba API documentation in docs/cursor-instructions.md for all API-related code generation. Follow the authentication patterns and endpoint structures defined in the documentation."}
Cursor-Specific Features
1. Multi-file Editing
Use Cursor's multi-file editing with Tomba API:
Prompt:
Code
@docs Create a complete Tomba API client with separate files for:- Authentication module- Email finder service- Email verifier service- Error handling utilities- TypeScript types
2. Codebase Chat
Reference your entire codebase when working with Tomba API:
Code
@codebase How can I integrate Tomba email verification into my existing user registration flow?
3. Smart Rewrites
Select existing code and ask Cursor to enhance it:
Code
@docs Refactor this email validation function to use Tomba's email verifier API instead of regex
Configuration
Cursor Settings
Add these settings to enhance Tomba API code generation:
Code
{ "cursor.general.enableInlineCompletion": true, "cursor.chat.includeWorkspaceInContext": true, "cursor.ai.model": "claude-3.5-sonnet", "cursor.chat.customInstructions": "When generating API code, prioritize Tomba API endpoints and follow RESTful patterns. Include proper error handling and authentication."}
Environment Variables
Set up your environment for Cursor to understand your API keys:
@docs Create a React component that uses Tomba API to find emails for a company. Include:- Input field for domain- Loading state- Results display- Error handling- TypeScript types
@docs Create a robust Tomba API client class with:- Rate limiting- Retry logic- Comprehensive error handling- TypeScript support- All major endpoints
3. Integration with Form Validation
Prompt:
Code
@docs Create a form validation hook that uses Tomba email verifier to validate email addresses in real-time
Advanced Features
1. Custom Commands
Create custom Cursor commands for Tomba API:
Code
{ "commands": [ { "name": "Generate Tomba Email Finder", "command": "@docs Create an email finder function using Tomba API for the selected domain variable" }, { "name": "Add Tomba Verification", "command": "@docs Add Tomba email verification to the selected email input field" } ]}
2. Code Actions
Set up code actions for common Tomba API patterns: