MCPcopy Index your code
hub / github.com/codeaashu/claude-code / makeToolSchema

Function makeToolSchema

src/tools/WebSearchTool/WebSearchTool.ts:76–84  ·  view source on GitHub ↗
(input: Input)

Source from the content-addressed store, hash-verified

74import type { WebSearchProgress } from '../../types/tools.js'
75
76function makeToolSchema(input: Input): BetaWebSearchTool20250305 {
77 return {
78 type: 'web_search_20250305',
79 name: 'web_search',
80 allowed_domains: input.allowed_domains,
81 blocked_domains: input.blocked_domains,
82 max_uses: 8, // Hardcoded to 8 searches maximum
83 }
84}
85
86function makeOutputFromSearchResponse(
87 result: BetaContentBlock[],

Callers 1

callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected