davinci_build
Validate, optionally update, generate, and export AUTOSAR DaVinci projects in one command; stop on validation errors to avoid generating from invalid configurations.
Instructions
一条命令跑完「校验 →(可选)更新 → 生成 →(可选)导出」。
校验存在错误时默认中止,避免在错误配置上浪费时间生成。 适合 CI 或「把工程编译出代码」这类端到端诉求。
Args: project: .dvjson 工程文件。 bsw_package: BSW 包目录。 modules: 只处理这些模块。 update_first: 生成前先跑 project update。 update_confirmed: 允许 update 写回工程(update_first=true 时必须为 true)。 generate: 是否生成代码。 export: 生成后执行的导出器 ID。 export_output: 导出目录。 fail_on: 校验失败阈值 NONE / ERROR / WARNING。 continue_on_validation_error: 即使校验有错误也继续生成。
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": {
"project": "<project>"
},
"name": "davinci_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| export | No | ||
| fail_on | No | ERROR | |
| modules | No | ||
| project | Yes | ||
| generate | No | ||
| timeout_s | No | ||
| bsw_package | No | ||
| update_first | No | ||
| export_output | No | ||
| update_confirmed | No | ||
| continue_on_validation_error | No |