MCPcopy Create free account
hub / github.com/codeaashu/claude-code / checkPermissions

Function checkPermissions

src/tools/WebSearchTool/WebSearchTool.ts:209–222  ·  view source on GitHub ↗
(_input)

Source from the content-addressed store, hash-verified

207 return input.query
208 },
209 async checkPermissions(_input): Promise<PermissionResult> {
210 return {
211 behavior: 'passthrough',
212 message: 'WebSearchTool requires permission.',
213 suggestions: [
214 {
215 type: 'addRules',
216 rules: [{ toolName: WEB_SEARCH_TOOL_NAME }],
217 behavior: 'allow',
218 destination: 'localSettings',
219 },
220 ],
221 }
222 },
223 async prompt() {
224 return getWebSearchPrompt()
225 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected