This document provides comprehensive documentation of Lovable's tool ecosystem, focusing on the systematic naming conventions and organizational structure. Lovable employs a prefix-based naming system that categorizes tools by their primary domain or service integration. This page covers tool discovery, naming patterns, and the complete catalog of available capabilities.
For information about Lovable's file editing strategies and line-replace operations, see 4.3.2. For details on specific integrations like image generation and security scanning, see 4.3.4 and 4.3.5.
Lovable implements a domain-prefixed naming convention where tools are categorized by their functional area or external service integration. This systematic approach enables developers to quickly identify tool capabilities and locate related functionality.
Sources: Lovable/Agent Tools.json1-436
| Prefix | Domain | Tool Count | Primary Purpose |
|---|---|---|---|
lov-* | Core Operations | 14 | File operations, search, dependencies, console/network access |
secrets--* | Secrets Management | 2 | Encrypted secret storage and retrieval |
supabase--* | Supabase Integration | 2 | Documentation search and retrieval |
imagegen--* | Image Generation | 2 | AI-powered image creation and editing |
websearch--* | Web Search | 1 | Real-time web information retrieval |
analytics--* | Analytics | 1 | Project usage metrics and statistics |
stripe--* | Stripe Payments | 1 | Payment integration setup |
security--* | Security | 3 | Supabase backend security scanning |
document--* | Document Processing | 1 | Multi-format document parsing |
Sources: Lovable/Agent Tools.json1-436
lov-* Tools)The lov-* prefix encompasses Lovable's foundational file manipulation, search, and project management capabilities. These tools form the primary interface for code editing and repository management.
Sources: Lovable/Agent Tools.json40-229
The lov-view tool reads file contents with optional line range specification. Default behavior displays the first 500 lines when no range is specified.
Parameters:
file_path (required): Relative path from project root (e.g., "src/App.tsx")lines (optional): Line ranges in format "1-800, 1001-1500"Usage Guidelines:
lov-view calls in parallel for efficiencySources: Lovable/Agent Tools.json144-159
The lov-line-replace tool is the PREFERRED method for editing existing files, using explicit line numbers for precise modifications. This tool validates that the search content matches the file at specified line ranges before applying replacements.
Parameters:
file_path (required): Path to file being modifiedsearch (required): Content to find (use ellipsis ... for large sections)first_replaced_line (required): First line number (1-indexed)last_replaced_line (required): Last line number (1-indexed)replace (required): New content to substituteEllipsis Usage Pattern: For sections longer than ~6 lines, use ellipsis notation to reduce specification overhead:
... on its own lineCritical Rules:
Sources: Lovable/Agent Tools.json57-89
The lov-write tool overwrites entire files and is designated as a FALLBACK mechanism. Primary use cases are creating new files or recovering from lov-line-replace failures.
Parameters:
file_path (required): Relative path from project rootcontent (required): Complete file contentMinimization Requirements:
lov-line-replace for most changes instead of rewriting// ... keep existing code comments for unchanged sections"... keep existing code"Parallel Execution:
When creating multiple files, invoke lov-write simultaneously for all files rather than sequentially.
Sources: Lovable/Agent Tools.json40-56
Special Character Handling:
Use \\ to escape special characters in regex patterns (e.g., "useEffect\\(" to search for useEffect( literally).
Sources: Lovable/Agent Tools.json15-39
The dependency management tools interact with npm package registry to add or remove project dependencies. Version specifications can be included in the package parameter (e.g., "lodash@latest", "[email protected]").
Sources: Lovable/Agent Tools.json2-199
Downloads files from URLs directly into the repository. Primary use cases include image assets, external resources, and file migration.
Parameters:
source_url (required): URL of file to downloadtarget_path (required): Destination path in repository (use public folder unless specified)Important Constraint: Do NOT use this tool for user-uploaded images in chat. Follow instructions provided with user images instead.
Sources: Lovable/Agent Tools.json90-108
Fetches website content and temporarily saves it in tmp://fetched-websites/ directory. Returns file paths and content preview.
Parameters:
url (required): Website URL to fetchformats (optional): Comma-separated list: 'markdown', 'html', 'screenshot' (default: 'markdown')Sources: Lovable/Agent Tools.json109-126
Reads console logs captured at the moment of user request. Provides optional search filtering.
Key Constraints:
Parameters:
search (required): Filter query (empty string returns all logs)Sources: Lovable/Agent Tools.json161-173
Reads network requests with optional search filtering. Similar constraints to console logs apply.
Parameters:
search (required): Filter query (empty string returns all requests)Sources: Lovable/Agent Tools.json174-186
Lovable's external service integrations use double-dash (--) separators in their naming convention, distinguishing them from core operations. This section documents the specialized tools for third-party services.
secrets--*)Critical Security Guidelines:
Parameters:
secret_name (required): Environment variable name (e.g., "STRIPE_API_KEY")Sources: Lovable/Agent Tools.json230-255
supabase--*)The Supabase tools provide access to official documentation via the Content API, enabling comprehensive implementation guidance retrieval.
Searches Supabase documentation with ranked results including title, slug, URL, and content snippets.
When to Use:
Search Strategy:
"row level security", "auth policies", "storage buckets"supabase--docs-get using returned slugParameters:
query (required): Search query stringmax_results (optional): Maximum results (default: 5, max: 10)Sources: Lovable/Agent Tools.json256-272
Fetches complete Supabase documentation pages by slug, returning structured content with full markdown, headings outline, and metadata.
Slug Format:
"category/subcategory/page-name""auth/row-level-security", "storage/uploads"Output Includes:
Sources: Lovable/Agent Tools.json273-285
imagegen--*)Lovable integrates AI-powered image generation using Flux models, with tools for both creation and editing.
Generates images from text prompts and saves to specified file paths.
Model Selection:
flux.schnell (default): Fast, high-quality, recommended for small images (<1000px)flux.dev: Higher quality, slower, use for large images (hero images, fullscreen banners)Parameters:
prompt (required): Text description of desired imagetarget_path (required): Save location (prefer src/assets/ folder)width (optional): Width in pixels (512-1920, multiples of 32)height (optional): Height in pixels (512-1920, multiples of 32)model (optional): "flux.schnell" or "flux.dev"Prompting Tips:
Import Requirement: Generated images MUST be imported as ES6 modules:
Sources: Lovable/Agent Tools.json299-327
Edits existing images or merges multiple images based on text prompts.
Capabilities:
"make it rainy", "change to sunset lighting")"blend these two landscapes", "create a collage")Use Case: Excellent for object/character consistency across scenes. When users request tweaks to existing images, prefer this tool over generating new images.
Parameters:
image_paths (required): Array of image file pathsprompt (required): Edit/merge instructiontarget_path (required): Output file locationSources: Lovable/Agent Tools.json328-351
websearch--*)Performs web searches returning relevant results with text content, optional links, and image links.
Search Operators:
"site:docs.anthropic.com API documentation""site:docs.anthropic.com site:github.com"'"gpt5" model name' (include "gpt5" exactly)"jaguar speed -car" (exclude "car")Category Filtering (exact strings required):
"news""linkedin profile""pdf""github""personal site""financial report"Parameters:
query (required): Search query stringnumResults (optional): Number of results (default: 5)links (optional): Number of links per resultimageLinks (optional): Number of image links per resultcategory (optional): Result category filterWhen to Use:
Sources: Lovable/Agent Tools.json352-380
analytics--*)Reads analytics for production builds between specified dates with configurable granularity.
Parameters:
startdate (required): RFC3339 format or YYYY-MM-DDenddate (required): RFC3339 format or YYYY-MM-DDgranularity (required): "hourly" or "daily"When to Use:
Sources: Lovable/Agent Tools.json381-398
stripe--*)Enables Stripe integration by prompting user for Stripe secret key.
Parameters: None required (empty object)
Sources: Lovable/Agent Tools.json399-406
security--*)The security tools provide comprehensive analysis of Supabase backend configurations, detecting exposed data, missing RLS policies, and misconfigurations.
Initiates comprehensive security analysis of Supabase backend.
Parameters: None required (empty object)
Sources: Lovable/Agent Tools.json407-414
Fetches security scan results. Set force=true to retrieve results even when scan is still running.
Parameters:
force (required): Boolean flag for forced retrievalSources: Lovable/Agent Tools.json415-426
Retrieves database table schema information and security analysis prompt for Supabase database.
Parameters: None required (empty object)
Sources: Lovable/Agent Tools.json427-434
document--*)Parses and extracts content from documents (first 50 pages), supporting PDFs, Word docs, PowerPoint, Excel, MP3, and other formats. Preserves document structure, extracts tables and images, and performs OCR on embedded images.
Parameters:
file_path (required): Path to document fileSources: Lovable/Agent Tools.json286-298
All tool definitions in Lovable are stored in structured JSON format at Lovable/Agent Tools.json providing programmatic access to tool schemas, parameter requirements, and usage documentation.
Each tool entry follows this schema:
Sources: Lovable/Agent Tools.json1-436
| Category | Tools | Count |
|---|---|---|
| File Operations | lov-view, lov-write, lov-line-replace, lov-delete, lov-rename, lov-copy | 6 |
| Search & Discovery | lov-search-files | 1 |
| Dependency Management | lov-add-dependency, lov-remove-dependency | 2 |
| External Resources | lov-download-to-repo, lov-fetch-website | 2 |
| Runtime Diagnostics | lov-read-console-logs, lov-read-network-requests | 2 |
| Secrets Management | secrets--add_secret, secrets--update_secret | 2 |
| Supabase Integration | supabase--docs-search, supabase--docs-get | 2 |
| Image Generation | imagegen--generate_image, imagegen--edit_image | 2 |
| Web Search | websearch--web_search | 1 |
| Analytics | analytics--read_project_analytics | 1 |
| Stripe Payments | stripe--enable_stripe | 1 |
| Security Scanning | security--run_security_scan, security--get_security_scan_results, security--get_table_schema | 3 |
| Document Processing | document--parse_document | 1 |
| TOTAL | 26 |
Sources: Lovable/Agent Tools.json1-436
Refresh this wiki