MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / validateInput

Function validateInput

source code/tools/WebFetchTool/WebFetchTool.ts:193–206  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

191${DESCRIPTION}`
192 },
193 async validateInput(input) {
194 const { url } = input
195 try {
196 new URL(url)
197 } catch {
198 return {
199 result: false,
200 message: `Error: Invalid URL "${url}". The URL provided could not be parsed.`,
201 meta: { reason: 'invalid_url' },
202 errorCode: 1,
203 }
204 }
205 return { result: true }
206 },
207 renderToolUseMessage,
208 renderToolUseProgressMessage,
209 renderToolResultMessage,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected