MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getPreReadInstruction

Function getPreReadInstruction

src/tools/FileWriteTool/prompt.ts:6–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4export const DESCRIPTION = 'Write a file to the local filesystem.'
5
6function getPreReadInstruction(): string {
7 return `\n- If this is an existing file, you MUST use the ${FILE_READ_TOOL_NAME} tool first to read the file's contents. This tool will fail if you did not read the file first.`
8}
9
10export function getWriteToolDescription(): string {
11 return `Writes a file to the local filesystem.

Callers 1

getWriteToolDescriptionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected