davinci_script_lint
Statically checks Groovy automation scripts for missing code blocks, unbalanced brackets, unknown task types, and unsafe calls, then optionally loads the project to verify compilation.
Instructions
静态检查 Groovy 脚本;compile_check=true 时再让 DaVinci 真正加载一次。
静态规则覆盖:scriptTask 缺失、code 块缺失、括号不配对、任务类型未知、 System.exit、起线程、静态可变字段、删除文件等。
Args: script: 脚本路径。 project: compile_check 时必填,DaVinci 需要先加载工程。 bsw_package: BSW 包目录。 compile_check: 是否调用 automation list 做编译检查。
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": {
"script": "<script>"
},
"name": "davinci_script_lint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| project | No | ||
| bsw_package | No | ||
| compile_check | No |