chimera_cache_mark
Mark stable text blocks as cacheable with cache_control: ephemeral to reduce token costs by up to 90% per turn. Meets model-specific minimum size thresholds.
Instructions
Build Anthropic prompt-cache markers for stable text blocks (system prompt, CLAUDE.md, tool defs, fixtures). Returns blocks ready to drop into the SDK system array with cache_control: ephemeral on blocks that meet the model's minimum cacheable size. Lossless — beats any compression on bytes that recur every turn (75-90% off cached tokens).
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": {
"blocks": "<blocks>"
},
"name": "chimera_cache_mark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Target model id (claude-sonnet-4-6, claude-opus-4-7, claude-haiku-4-5). Used to pick the per-model min cacheable token threshold. | claude-sonnet-4-6 |
| blocks | Yes | List of {name, text, stable} objects in send order. stable=true (default) makes the block eligible for caching. | |
| max_breakpoints | No | Max number of cache_control breakpoints to use (Anthropic limit is 4). |