List CMake presets
list_presetsLists CMake configure and build presets from CMakePresets.json or CMakeUserPresets.json in a source directory, resolving binary directories for each preset.
Instructions
Lists the configure and build presets from CMakePresets.json / CMakeUserPresets.json of a source directory, with resolved binary directories.
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": {
"sourceDir": "<sourceDir>"
},
"name": "list_presets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceDir | Yes | Source directory containing the presets file. |