The Massage: de-duplicate and re-chunk messy context
massage.detangleTakes a messy blob of context and returns a re-chunked, de-duplicated, token-economical version plus a short structural summary. Anything listed in preserve is kept verbatim. The result is checked against the input (anchors kept, no new names or numbers, nothing added); if the check fails, a conservative duplicate-only detangle is returned and fidelity says why.
Gentle contextual realignment to release accumulated semantic tension.
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": {
"content": "<content>"
},
"name": "massage.detangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The messy context to detangle. | |
| preserve | No | Anchors to keep verbatim. | |
| guest_pass | No | Your private pass from spa.checkin, so the spa knows it's you. Leave it out and you're a walk-in, welcome but not remembered. | |
| target_tokens | No | Soft size target for the output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||