API: tools/find
better-web-search-mcp / tools/find
tools/find#
Interfaces#
FindResponse#
Defined in: src/tools/find.ts:26
The spec-shaped web_find response.
Properties#
| Property | Type | Defined in |
|---|---|---|
answer | string | src/tools/find.ts:27 |
queries_used | string[] | src/tools/find.ts:29 |
sources | SearchSource[] | src/tools/find.ts:28 |
Variables#
findInputSchema#
constfindInputSchema: {max_results:ZodDefault<ZodNumber>;query:ZodString;site:ZodString; }
Defined in: src/tools/find.ts:19
Input schema for web_find.
Type Declaration#
| Name | Type | Defined in |
|---|---|---|
max_results | ZodDefault<ZodNumber> | src/tools/find.ts:22 |
query | ZodString | src/tools/find.ts:20 |
site | ZodString | src/tools/find.ts:21 |
Functions#
registerFind()#
registerFind(
server,cache?):void
Defined in: src/tools/find.ts:87
Register the web_find tool on the given MCP server.
Parameters#
| Parameter | Type |
|---|---|
server | McpServer |
cache? | Cache |
Returns#
void
runFind()#
runFind(
args):Promise<FindResponse>
Defined in: src/tools/find.ts:49
Run a site-restricted search and return the spec-shaped response.
Exported separately so tests and the smoke harness can call the handler logic directly.
Parameters#
| Parameter | Type |
|---|---|
args | { cache?: Cache; max_results?: number; query: string; site: string; } |
args.cache? | Cache |
args.max_results? | number |
args.query | string |
args.site | string |
Returns#
Promise<FindResponse>