feat: add snapshot_project tool for step checkpoints (resume from Step2 without full redo)

This commit is contained in:
Tom
2026-03-06 20:42:42 +01:00
parent ae66001886
commit b43c63edca
3 changed files with 60 additions and 0 deletions

View File

@@ -70,6 +70,28 @@ PROJECT_TOOLS = [
}
}
},
{
"name": "snapshot_project",
"title": "Snapshot Project (Checkpoint)",
"description": "Copies the entire project folder to a new timestamped snapshot directory so you can resume from this checkpoint later without redoing earlier steps. Call this after every successfully completed design step (e.g. after Step 1 schematic, after Step 2 PCB layout) before asking for user confirmation to proceed.",
"inputSchema": {
"type": "object",
"properties": {
"step": {
"type": "string",
"description": "Step number or name to include in snapshot folder name, e.g. '1' or '2'"
},
"label": {
"type": "string",
"description": "Optional short label, e.g. 'schematic_ok' or 'layout_ok'"
},
"projectPath": {
"type": "string",
"description": "Project directory path. Auto-detected from loaded board if omitted."
}
}
}
},
{
"name": "get_project_info",
"title": "Get Project Information",