MCPcopy Create free account
hub / github.com/Noumena-Network/code / makeWebFetchSourceId

Function makeWebFetchSourceId

src/tools/WebFetchTool/WebFetchTool.ts:78–86  ·  view source on GitHub ↗
(toolUseID: string)

Source from the content-addressed store, hash-verified

76}
77
78export function makeWebFetchSourceId(toolUseID: string): string {
79 const suffix = toolUseID
80 .trim()
81 .replace(/[^A-Za-z0-9]+/g, '_')
82 .replace(/^_+|_+$/g, '')
83 .toLowerCase()
84
85 return `webfetch_${suffix || 'result'}`
86}
87
88export function makeWebFetchSourceMetadata(
89 {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected