MCPcopy
hub / github.com/codeaashu/claude-code / addArgumentsToPrompt

Function addArgumentsToPrompt

src/utils/hooks/hookHelpers.ts:30–35  ·  view source on GitHub ↗
(
  prompt: string,
  jsonInput: string,
)

Source from the content-addressed store, hash-verified

28 * Also supports indexed arguments like $ARGUMENTS[0], $ARGUMENTS[1], or shorthand $0, $1, etc.
29 */
30export function addArgumentsToPrompt(
31 prompt: string,
32 jsonInput: string,
33): string {
34 return substituteArguments(prompt, jsonInput)
35}
36
37/**
38 * Create a StructuredOutput tool configured for hook responses.

Callers 2

execPromptHookFunction · 0.85
execAgentHookFunction · 0.85

Calls 1

substituteArgumentsFunction · 0.85

Tested by

no test coverage detected