get_file
Read file contents from the SiYuan knowledge base for snapshots or data files. Returns text with sensitive information masked, or a binary data placeholder when decoding fails.
Instructions
读取指定文件的内容(只读)。
用于读取历史快照或其他数据文件。
注意事项: - 文本内容会进行敏感信息打码。 - 若文件为二进制且无法解码为 UTF-8,将返回 '[Binary Data]'。
Args: path: 文件路径,例如 '/data/history/2023/01/...'。
Returns: str: 文件内容(文本)或二进制数据提示。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |