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

Function prompt

src/tools/FileReadTool/FileReadTool.ts:347–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345 return DESCRIPTION
346 },
347 async prompt() {
348 const limits = getDefaultFileReadingLimits()
349 const maxSizeInstruction = limits.includeMaxSizeInPrompt
350 ? `. Files larger than ${formatFileSize(limits.maxSizeBytes)} will return an error; use offset and limit for larger files`
351 : ''
352 const offsetInstruction = limits.targetedRangeNudge
353 ? OFFSET_INSTRUCTION_TARGETED
354 : OFFSET_INSTRUCTION_DEFAULT
355 return renderPromptTemplate(
356 pickLineFormatInstruction(),
357 maxSizeInstruction,
358 offsetInstruction,
359 )
360 },
361 get inputSchema(): InputSchema {
362 return inputSchema()
363 },

Callers

nothing calls this directly

Calls 3

formatFileSizeFunction · 0.85
renderPromptTemplateFunction · 0.85

Tested by

no test coverage detected