{
  "name": "com.acme.ecu.read_faults",
  "kind": "command",
  "title": "Read ECU faults",
  "description": "Read stored trouble codes with UDS service 0x19.",
  "inputSchema": {
    "type": "object",
    "required": [],
    "properties": {},
    "additionalProperties": false
  },
  "risk": "read",
  "privacy": "internal",
  "physical": false,
  "callers": [
    "human",
    "ai"
  ],
  "native": {
    "protocol": "can",
    "target": "can0:0x7E0",
    "request": {
      "format": "uds",
      "data": [
        "0x19",
        "0x02",
        "0xFF"
      ]
    },
    "timeoutMs": 2000,
    "response": {
      "extract": {
        "faults": {
          "from": "payload[3:]"
        }
      }
    }
  }
}
