MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / read

Method read

src/types/scriptcat.zh-CN.d.ts:1564–1564  ·  view source on GitHub ↗

读取文件内容。使用 `format: "blob"` 获取二进制文件的 Blob 对象。默认 "text" 返回文本内容。

(path: string, format?: "text" | "blob")

Source from the content-addressed store, hash-verified

1562
1563 /** 读取文件内容。使用 `format: "blob"` 获取二进制文件的 Blob 对象。默认 "text" 返回文本内容。 */
1564 read(path: string, format?: "text" | "blob"): Promise<ReadResult>;
1565
1566 /** 列出文件和目录。省略 path 时默认列出工作区根目录。 */
1567 list(path?: string): Promise<FileEntry[]>;

Callers 11

runFunction · 0.65
ToolsFunction · 0.65
fetchScriptBodyFunction · 0.65
makeControllerMethod · 0.65
FetchXHRClass · 0.65
getFileContentMethod · 0.65
parseMethod · 0.65
syncOnceInternalMethod · 0.65
pullScriptMethod · 0.65
CAT_fileStorageMethod · 0.65
readSSEStreamFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected