cf_normalize
Normalizes structured row arrays by applying a field whitelist and stable sort, so identical data with jittered order produces the same cache key and an nk- fingerprint.
Instructions
归一化结构化行数据(对象数组):按字段白名单裁剪 + 稳定排序,让内容相同但顺序抖动的返回归为同一个缓存键,输出归一后的 rows 与 nk- 前缀键指纹。与 cf_prune 的分工:cf_normalize 吃 rows 数组、产出稳定键;cf_prune 吃纯文本、产出短文本。【何时调】同类工具多次返回、内容相同但字段顺序抖动导致缓存键反复失效时调一次,把顺序固定下来。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rows": "<rows>"
},
"name": "cf_normalize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | 结构化行数据(对象数组),排序依据字段名而非原始行序 | |
| fields | No | 保留字段白名单;不传则保留全部字段 |