Check code against an ESP-IDF release
check_esp_idf_apiFinds the ESP-IDF functions, types and headers in a piece of code that do not fit the ESP-IDF release of the project: removed, changed or deprecated by that release, or introduced after it. Each finding names the replacement. Use it on ESP32 code before building, when the code may come from another ESP-IDF major version, for example ESP-IDF 4 driver calls in an ESP-IDF 5 project. The list comes from Espressif's migration guides for ESP-IDF 5.0 to 5.5, so a name outside those guides is not judged.
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": {
"code": "<code>",
"idf_version": "<idf_version>"
},
"name": "check_esp_idf_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The C or C++ source to check. | |
| idf_version | Yes | The ESP-IDF release the project builds with, for example 5.3 or 4.4. |