davinci_script_run
Execute Groovy automation tasks for DaVinci projects, with compile-check dry runs, task arguments, and automatic background job fallback after the wait limit.
Instructions
执行 Groovy 脚本任务(dvcfg-b automation run)。
脚本是任意代码,真正执行必须 confirm=true;dry_run=true 只加载脚本做编译检查。 不传 tasks 时会从 scripts 里解析任务名。超过 wait_seconds 自动转后台作业。
Args: project: .dvjson 工程文件;纯 DV_APPLICATION 任务可省略。 tasks: 任务名列表,例如 ["Validate"]。 scripts: 脚本文件列表;其所在目录会自动加入 -l。 locations: 额外脚本目录(脚本工程的 build/libs 也放这里)。 task_args: 每个任务的用户参数,值为参数串, 例如 {"Search": "--q=Definition == EcucGeneral"}。 no_save: 加 --no-save,脚本改动不写回工程。 debug_port: 开启 Config Core 调试端口(--debugger=)。 dry_run: 只做编译检查,不执行。 confirm: 执行时必须为 true。 timeout_s: 命令硬超时。 wait_seconds: 同步等待秒数,超时转后台。
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": "davinci_script_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | No | ||
| confirm | No | ||
| dry_run | No | ||
| no_save | No | ||
| project | No | ||
| scripts | No | ||
| locations | No | ||
| task_args | No | ||
| timeout_s | No | ||
| debug_port | No | ||
| bsw_package | No | ||
| wait_seconds | No |