get_block_diffs
Retrieve content block changes within a specified time range, returning before/after text and diff statistics to audit edits and identify added, removed, or replaced content.
Instructions
查询指定时间范围内修改的内容块并返回前后对比。
适用场景:
需要审计每个块的具体改动(含 before/after)。
需要变更类型(新增/删减/替换)和差异统计。
与 get_block_changes 的区别:
本函数会读取历史快照并与当前内容对比。
返回 before/after 文本和 diff 统计, 但更重且依赖 /history。
注意事项:
依赖 history_root 可读;若历史目录不可访问,将无法完成比对。
before/after 为脱敏文本;max_text_length 会对长文本截断。
Args: start_time: 起始时间,格式为 'YYYYMMDDHHMMSS'。 end_time: 结束时间,格式为 'YYYYMMDDHHMMSS',可选。 limit: 最大返回条目数,默认为 50。 history_root: 历史快照根目录,默认为 '/history'。 max_text_length: 前后文本最大长度,超出将截断。
Returns: Dict[str, Any]: 包含块变更差异结果。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| end_time | No | ||
| start_time | Yes | ||
| history_root | No | /history | |
| max_text_length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |