brave_local_search
Find local businesses and places with detailed information including addresses, ratings, phone numbers, and opening hours. Use for queries about physical locations or services in specific areas.
Instructions
Searches for local businesses and places using Brave's Local Search API. Best for queries related to physical locations, businesses, restaurants, services, etc. Returns detailed information including:
Business names and addresses
Ratings and review counts
Phone numbers and opening hours Use this when the query implies 'near me' or mentions specific locations. Automatically falls back to web search if no local results are found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Local search query (e.g. 'pizza near Central Park') | |
| count | No | Number of results (1-20, default 5) |
Implementation Reference
- src/tools/handlers.ts:189-201 (handler)The handler function for the 'brave_local_search' tool, which validates arguments and calls the 'performLocalSearch' utility.
export async function localSearchHandler(args: unknown) { if (!isBraveLocalSearchArgs(args)) { throw new Error("Invalid arguments for brave_local_search"); } const { query, count = 5 } = args; const results = await performLocalSearch(query, count); return { content: [{ type: "text", text: results }], isError: false, }; } - src/tools/definitions.ts:104-115 (schema)Schema definition for the 'brave_local_search' tool, defining its input parameters and description.
required: ["query"], }, }; // ─── Local/Business Search Tools ────────────────────────────── // Searches for physical businesses and places (restaurants, stores, services). // Returns structured data: name, address, phone, rating, hours, price range. // If no local results are found, automatically falls back to a regular web search. export const LOCAL_SEARCH_TOOL: Tool = { name: "brave_local_search", description: