kb_import
Restores a knowledge base from a tar.gz backup created by kb_export, overwriting existing files with the same names. Returns the number of files restored.
Instructions
从 kb_export 生成的 tar.gz 备份恢复知识库(同名文件覆盖)。
入参:backup_path,备份文件的绝对路径或相对项目根目录的路径。 返回:恢复结果文本(含恢复的文件数)。 下一步:kb_list 确认恢复结果,kb_search 抽查具体内容。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |