MCPcopy Create free account
hub / github.com/Noumena-Network/code / getPath

Function getPath

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getCwdFunction · 0.85

Tested by

no test coverage detected