analyze_mid_print_impact
Analyze carved G-code before committing a mid-print edit to identify which layers will actually change and flag any shortfall versus the requested carve depth.
Instructions
Pre-commit truth gate: which layers will actually change (Pro).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_mid_print_impact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | Session key from a prior ``decorate_during_print`` / ``add_feature_during_print`` call. Resolved under ~/.kiln/mid_print_sessions/ and the legacy tempdir fallbacks that ``get_print_before_edit`` uses. Default: "". | |
| carved_gcode_path | No | Explicit path to a carved gcode, bypassing session lookup entirely. Useful for analysing a carved artifact that isn't in a standard session directory. Default: "". | |
| engine_output_dir | No | Direct path to the session directory. Higher priority if both supplied. Default: "". | |
| requested_depth_mm | No | The decoration depth the originating tool call asked for. Used to compute the ``depth_gap_mm`` and fire ``DEPTH_SHY`` when the achievable depth falls short. Pass 0.0 (default) to skip depth warnings — the per-layer breakdown + carve metrics still populate. Default: 0.0. |