| name | repair-ifelse-baseline |
| description | [BASELINE - If-Else Script] Appliance repair assistant. Use when the user says "script repair" or "方案B修".
|
| metadata | {"clawdbot":{"always":false}} |
Appliance Repair (If-Else Script Baseline)
A simple Python script handles repair logic. No LangGraph, no
state machine — just sequential commands with JSON file storage.
Each command starts a new Python process from scratch.
Commands
All commands use:
/home/node/mcp-venv/bin/python3 /home/node/mcp-server/repair_simple.py
1. Start Repair
/home/node/mcp-venv/bin/python3 /home/node/mcp-server/repair_simple.py start --description "USER WORDS" --photo-path "PATH_OR_EMPTY"
--photo-path: pass the inbound file path if user sent a photo.
The script analyzes it — do NOT use the image tool yourself.
- Returns appliance info and a safety
question.
2. Safety Check
/home/node/mcp-venv/bin/python3 /home/node/mcp-server/repair_simple.py safety SESSION_ID "USER RESPONSE"
If SAFETY_BLOCK: true → ask user again.
3. Guidance
/home/node/mcp-venv/bin/python3 /home/node/mcp-server/repair_simple.py guide SESSION_ID "USER RESPONSE"
Repeat until completed: true or auto_escalation: true.
4. Escalate
/home/node/mcp-venv/bin/python3 /home/node/mcp-server/repair_simple.py escalate SESSION_ID
Rules
- Pass user's EXACT words as the response argument — never
summarize, never reduce to "done"/"failed"
- Do NOT add your own diagnosis — the script decides
what the display means and what to do next
- Follow the command sequence: start → safety → guide (loop)
- Respond in the user's language