get_knowledge_history
Retrieve revision history of a knowledge item to audit changes, verify prior behavior, or recover replaced content. Optionally include snapshot bodies or fetch a specific version.
Instructions
查看一个知识条目(lesson/decision/playbook)的修订历史。 / Return the revision history (superseded snapshots) of one knowledge item.
**Lifecycle: retrieval** — 需要追溯某条知识改过什么、何时改的、改前长什么样时调用。
Lifecycle: retrieval — call when you need what changed on an item, when, and what the prior body looked like.
用途:修订后核对旧行为、审计版本链、或找回被改掉的内容。
Purpose: verify prior behavior after a revision, audit a version chain, or recover replaced content.
Args:
item_id: 条目 ID(稳定 HEAD id,不是快照 id)。 / Item id (the stable HEAD id, not a snapshot id).
include_bodies: 是否在结果里带快照正文(默认 false 只给元数据)。 / Include snapshot bodies in the result (default false returns metadata only).
version: 精确按版本号取一个快照(可选);不存在时返回 version_not_found 而不是近似值。 / Exact by-version snapshot lookup (optional); a miss returns version_not_found, never a nearest match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| version | No | ||
| include_bodies | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |