MCPcopy
hub / github.com/nashsu/llm_wiki / readFile

Function readFile

src/commands/fs.ts:12–20  ·  view source on GitHub ↗
(
  path: string,
  options?: { extractImages?: boolean },
)

Source from the content-addressed store, hash-verified

10}
11
12export async function readFile(
13 path: string,
14 options?: { extractImages?: boolean },
15): Promise<string> {
16 return invoke<string>("read_file", {
17 path,
18 extractImages: options?.extractImages,
19 })
20}
21
22export async function writeFile(path: string, contents: string): Promise<void> {
23 assertAbsoluteFsPath("writeFile", path)

Callers 15

PreviewPanelFunction · 0.90
KnowledgeTreeFunction · 0.90
handleOpenSavedFunction · 0.90
handleOpenPageFunction · 0.90
handleFixFunction · 0.90
handleOpenSourceFunction · 0.90
handleOpenFunction · 0.90
handleJumpFromLightboxFunction · 0.90
SaveToWikiButtonFunction · 0.90
CitedReferencesPanelFunction · 0.90
openCitedPageFunction · 0.90
checkFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected