API: tools/find

better-web-search-mcp


better-web-search-mcp / tools/find

tools/find#

Interfaces#

FindResponse#

Defined in: src/tools/find.ts:26

The spec-shaped web_find response.

Properties#

PropertyTypeDefined in
answerstringsrc/tools/find.ts:27
queries_usedstring[]src/tools/find.ts:29
sourcesSearchSource[]src/tools/find.ts:28

Variables#

findInputSchema#

const findInputSchema: { max_results: ZodDefault<ZodNumber>; query: ZodString; site: ZodString; }

Defined in: src/tools/find.ts:19

Input schema for web_find.

Type Declaration#

NameTypeDefined in
max_resultsZodDefault<ZodNumber>src/tools/find.ts:22
queryZodStringsrc/tools/find.ts:20
siteZodStringsrc/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#

ParameterType
serverMcpServer
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#

ParameterType
args{ cache?: Cache; max_results?: number; query: string; site: string; }
args.cache?Cache
args.max_results?number
args.querystring
args.sitestring

Returns#

Promise<FindResponse>