upgrade
Migrates Open Knowledge Format bundles from v0.1 to v0.2 by converting legacy timestamps and citations into structured metadata and sources, with a diff preview when apply is false.
Instructions
OKF v0.1 to v0.2 (§13). A legacy timestamp becomes generated: {by, at, basis: git-history} with by
from git history (by is required, so without history it stays and is listed in needs_by); a body
# Citations list becomes sources entries and the list is removed; the root index.md declares
okf_version "0.2". apply=False shows the diff.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upgrade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | ||
| bundle | No |