This document covers Lovable's analytics and external integration capabilities, including production analytics monitoring, Stripe payment integration, Supabase documentation access, and web search functionality. These tools enable Lovable to gather usage data, integrate third-party services, and access external information resources.
For information about Lovable's security and secrets management capabilities, see 4.3.5. For general tool ecosystem and file operations, see 4.3.1.
Lovable provides four categories of analytics and external integration tools:
| Category | Tools | Primary Purpose |
|---|---|---|
| Analytics | analytics--read_project_analytics | Monitor production application usage metrics |
| Payment Integration | stripe--enable_stripe | Enable Stripe payment processing |
| Documentation Access | supabase--docs-search, supabase--docs-get | Search and retrieve Supabase documentation |
| Web Search | websearch--web_search | Access current web information and technical resources |
These tools extend Lovable's capabilities beyond code manipulation to include production monitoring, third-party service integration, and external knowledge acquisition.
Sources: Lovable/Agent Tools.json381-434
The analytics--read_project_analytics tool provides time-series usage data for production applications. It requires three mandatory parameters and returns granular metrics over a specified date range.
Sources: Lovable/Agent Tools.json381-397
The analytics tool enforces strict parameter formats:
| Parameter | Type | Format | Example |
|---|---|---|---|
startdate | string | RFC3339 or YYYY-MM-DD | "2025-01-01" or "2025-01-01T00:00:00Z" |
enddate | string | RFC3339 or YYYY-MM-DD | "2025-01-31" or "2025-01-31T23:59:59Z" |
granularity | string | "hourly" or "daily" | "daily" |
The tool automatically aggregates metrics based on the specified granularity, enabling both fine-grained hourly analysis and broader daily trend monitoring.
Activation Criteria:
Sources: Lovable/Agent Tools.json382-397
The stripe--enable_stripe tool provides a one-step integration activation mechanism. Unlike typical tool invocations, this tool initiates an interactive flow that prompts the user for credentials.
Sources: Lovable/Agent Tools.json399-405
The Stripe enablement process follows this sequence:
stripe--enable_stripe with empty parameters objectsecrets--add_secret mechanism (see 4.3.5)The tool definition explicitly states: "Calling this tool will prompt the user for their Stripe secret key" Lovable/Agent Tools.json400
Sources: Lovable/Agent Tools.json399-405 Lovable/Agent Tools.json230-241
Lovable provides a two-tier Supabase documentation access system: search and retrieval. This architecture mirrors typical documentation API patterns with a search-then-fetch workflow.
The supabase--docs-search tool queries the Supabase Content API to find relevant documentation pages.
Tool Signature:
Search Strategy Guidelines Lovable/Agent Tools.json256-271:
| Aspect | Guideline |
|---|---|
| When to Use | Finding auth/database/storage/edge function docs, searching for code examples |
| Search Terms | Use specific terms: "row level security", "auth policies", "storage buckets" |
| Optimization | Try different keyword combinations if initial search fails |
| Output | Ranked results with title, slug, URL, and content snippet |
| Next Steps | Use supabase--docs-get with returned slug for full content |
Example Queries:
"RLS policies" → Returns row level security documentation"storage file upload" → Returns file storage implementation docsSources: Lovable/Agent Tools.json256-271
The supabase--docs-get tool fetches complete documentation pages using slugs obtained from search results.
Sources: Lovable/Agent Tools.json273-284
The supabase--docs-get tool requires a canonical slug in the format: "category/subcategory/page-name" Lovable/Agent Tools.json278
Example Slugs:
"auth/row-level-security" → Complete RLS implementation guide"storage/uploads" → Comprehensive file upload implementation"database/postgres-rls" → PostgreSQL RLS documentationOutput Structure:
Sources: Lovable/Agent Tools.json273-284
The websearch--web_search tool provides comprehensive web search capabilities with filtering, categorization, and result type controls.
Tool Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | - | The search query |
numResults | number | No | 5 | Number of results to return |
links | number | No | - | Number of links per result |
imageLinks | number | No | - | Number of image links per result |
category | string | No | - | Category filter (see below) |
Sources: Lovable/Agent Tools.json352-379
The tool supports seven specific search categories Lovable/Agent Tools.json354-365:
Sources: Lovable/Agent Tools.json352-379
The tool documentation Lovable/Agent Tools.json353-378 specifies several advanced search operators:
Domain Filtering:
site:docs.anthropic.com site:github.com API documentation
Searches multiple domains simultaneously for "API documentation".
Exact Phrase Matching:
"gpt5" model name OAI
Ensures "gpt5" appears exactly as written in results.
Term Exclusion:
jaguar speed -car
Searches for jaguar and speed while excluding results containing "car".
For technical information, the documentation specifically recommends these sources:
Date Awareness: The tool emphasizes accounting for the "Current date" in responses. For example, if instructions indicate "Current date: 2025-07-01" and the user requests latest documentation, queries should use 2025 rather than 2024.
Sources: Lovable/Agent Tools.json352-379
The tool description Lovable/Agent Tools.json352-353 defines specific activation criteria:
Sources: Lovable/Agent Tools.json352-379
The external integration tools follow distinct interaction patterns based on their function:
Sources: Lovable/Agent Tools.json381-434
The external integration tools depend on and interact with other Lovable subsystems:
| Integration Tool | Dependencies | Related Tools |
|---|---|---|
analytics--read_project_analytics | Production deployment infrastructure | Deployment system (monitoring hooks) |
stripe--enable_stripe | Secrets management system | secrets--add_secret (4.3.5) |
supabase--docs-search/get | External Supabase Content API | None (direct API access) |
websearch--web_search | External web search service | None (direct search service) |
The Stripe integration specifically leverages Lovable's secrets management infrastructure documented in 4.3.5, ensuring that API keys are encrypted and properly stored as environment variables accessible to backend code Lovable/Agent Tools.json231
Sources: Lovable/Agent Tools.json230-241 Lovable/Agent Tools.json381-434
These analytics and integration tools complement Lovable's core capabilities:
lov-add-dependency after enabling integrationssecurity--run_security_scan to validate Supabase RLS policies implemented from documentationThe external integration tools represent Lovable's "outward-facing" capabilities—gathering external information, monitoring production systems, and connecting to third-party services—while the core tool ecosystem handles internal project manipulation and development workflows.
Sources: Lovable/Agent Tools.json1-434
Refresh this wiki