Register a build directory
register_build_dirAdd an existing CMake build directory outside workspace roots, containing CMakeCache.txt, so other tools can query its build model.
Instructions
Adds an existing CMake build directory (one containing CMakeCache.txt) that lies outside the workspace roots, e.g. /tmp/build-foo, so the other tools can query it.
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": {
"buildDir": "<buildDir>"
},
"name": "register_build_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buildDir | Yes | Path to the build directory. |