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

Function getPath

src/tools/FileReadTool/FileReadTool.ts:385–387  ·  view source on GitHub ↗
({ file_path })

Source from the content-addressed store, hash-verified

383 return { isSearch: false, isRead: true }
384 },
385 getPath({ file_path }): string {
386 return file_path || getCwd()
387 },
388 backfillObservableInput(input) {
389 // hooks.mdx documents file_path as absolute; expand so hook allowlists
390 // can't be bypassed via ~ or relative paths.

Callers

nothing calls this directly

Calls 1

getCwdFunction · 0.85

Tested by

no test coverage detected