MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / GenerateClaudeToolUseID

Function GenerateClaudeToolUseID

internal/toolinjection/injection.go:28–30  ·  view source on GitHub ↗

GenerateClaudeToolUseID returns an ID of the form "toolu_cpa_inject_<8hex taskID><8hex random>".

(taskID uint32)

Source from the content-addressed store, hash-verified

26
27// GenerateClaudeToolUseID returns an ID of the form "toolu_cpa_inject_<8hex taskID><8hex random>".
28func GenerateClaudeToolUseID(taskID uint32) string {
29 return "toolu_" + InjectedIDMarker + encodeTaskID(taskID) + randomHex(8)
30}
31
32// InjectedIDMarkerNoUnderscore is the marker with underscores removed,
33// for matching IDs that were normalized by agents (e.g. OpenClaw strips underscores).

Callers 8

InjectClaudeNonStreamFunction · 0.85
FabricateClaudeNonStreamFunction · 0.85
FabricateClaudeStreamFunction · 0.85
TestExtractTaskIDFunction · 0.85
InjectClaudeStreamFunction · 0.85

Calls 2

encodeTaskIDFunction · 0.85
randomHexFunction · 0.85

Tested by 4

TestExtractTaskIDFunction · 0.68