knitbrain_optimize
Compress JSON, code, or prose into a token-efficient skeleton while storing the original locally. Retrieve it later using the returned recall:hash.
Instructions
Compress a payload (JSON / code / prose) into a token-cheap skeleton. The exact original is stored locally and recoverable via knitbrain_retrieve using the returned ⟨recall:hash⟩. Returns the original unchanged if compression wouldn't help.
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": {
"text": "<text>"
},
"name": "knitbrain_optimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The payload to optimize. |