List targets
list_targetsLists CMake build targets with type, project, defining directory, artifacts, and languages. Filter by name, type, project, directory, or build configuration to inspect what a project builds.
Instructions
Lists build targets with type, project, defining directory, artifacts and languages.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_targets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name filter: substring, glob (`*`, `?`) or regex wrapped in slashes, e.g. `/^test_/`. | |
| type | No | Only include these target types. | |
| project | No | Only targets belonging to this project() name. | |
| buildDir | No | Build directory (absolute, or relative to a workspace root). A source directory with a single build directory is also accepted. May be omitted when the workspace has exactly one build directory. | |
| directory | No | Only targets defined in this source directory (or below). | |
| configuration | No | Build configuration (e.g. Debug, Release) for multi-config generators. Defaults to the first one. |