Decode DTC
decode_dtcConvert a 3-byte UDS DTC to the SAE J2012 style code (P/C/B/U + digits) plus failure type byte, or the reverse ("U0073-00" to hex). With a status byte, explains each of the 8 DTC status bits.
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": {
"dtc": "<dtc>"
},
"name": "decode_dtc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dtc | Yes | Three bytes hex ("01 23 45") or a code ("P0123-45"). | |
| status | No | Optional status byte, e.g. "0x09". |