kit_apply_tool
Apply all segments from a podcast kit to an episode in order, with a dry run to preview each insertion's effect and duration before writing changes.
Instructions
Put every segment of a kit on an episode, in order (podcast kit apply).
Each entry is an InsertSegment on the document plane (journaled, shown in Studio, later
content ripples), so end means the end after the earlier entries. There is no compound
command: every entry is its own undo step, undo_steps in the result says how many.
Use dry_run=true first: it runs the whole kit on a copy, reports each entry's effect
and the new duration, and changes nothing (not even a legacy project rename). An unknown
kit, a segment or pinned version missing from the library, changed segment audio and any
refusal the copy run finds are reported before anything is written. A failure of the
write itself (disk, lock, conflict) can still stop the apply after earlier entries went
in; the error then names the entry and how many were applied, and each applied entry is
its own undo step. Errors: kit_unknown, kit_segment_missing,
segment_hash_mismatch, segment_position_out_of_range, segment_media_invalid,
segment_write_failed.
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": {
"kit_id": "<kit_id>"
},
"name": "kit_apply_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kit_id | Yes | ||
| dry_run | No | ||
| project_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |