Apply Strategy Patch (Chunked)
tt_apply_strategy_patch_chunkedChunked tt_apply_strategy_patch, for an edit too large to send in one tool argument.
WHEN TO USE: only after a normal tt_apply_strategy_patch call could
not be emitted in one piece. Before reaching for this, check whether
rewrite does the job — moving a timeframe across a whole strategy is
~60 bytes with rewrite and hundreds of KB without it. Between rewrite
and chunking, a large edit can normally be completed without asking the
user to do it by hand.
PROTOCOL. Encode the WHOLE CALL as JSON — not the strategy:
{"strategy_id": 123,
"patch": [ ...ops... ], # optional when `rewrite` is given
"rewrite": {"dimension": "timeframe", "from": "1m", "to": "5m"},
"dry_run": true,
"live_edit_confirmed": false}base64(gzip(...)) it if you can compute that; plain JSON is accepted too (the decoder is tolerant — do NOT hand-write base64). Split the string into N pieces and send each with the same draft_id and total_chunks. Earlier calls return {status: "chunk_received", ...}; the final call runs the patch and returns exactly what tt_apply_strategy_patch returns.
Resending the same (draft_id, chunk_index) replaces that chunk — safe to retry. Drafts are GC'd 5 minutes after the last write. Assembly is one-shot: if the patch itself is rejected, re-upload the chunks.
LIVE TEMPLATES: a non-dry-run edit to a deployed, subscribed or public template refuses once with LIVE_EDIT_CONFIRMATION_REQUIRED. After the user explicitly agrees, re-upload the chunks with live_edit_confirmed=true (this argument on the final chunk, or the same key inside the JSON). Never set it on your own initiative.
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": {
"draft_id": "<draft_id>",
"chunk_index": "<chunk_index>",
"total_chunks": "<total_chunks>",
"chunk": "<chunk>"
},
"name": "tt_apply_strategy_patch_chunked"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunk | Yes | ||
| draft_id | Yes | ||
| chunk_index | Yes | ||
| total_chunks | Yes | ||
| live_edit_confirmed | No |