davinci_script_create
Creates a .dv.groovy automation script from a selected template at a specified path without executing it; requires overwrite and confirm flags to replace existing files.
Instructions
从模板创建 .dv.groovy 脚本(写文件,不执行)。
路径可以省略 .groovy 后缀,服务会自动补成 .dv.groovy。 覆盖已有文件需要 overwrite=true 且 confirm=true。
Args: script_path: 目标脚本路径,例如 D:/work/ecu/Scripts/CheckAll.dv.groovy。 template: 模板 key,见 davinci_script_templates。 task_name: 任务名(默认沿用模板里的名字)。 task_type: DV_PROJECT / DV_APPLICATION / DV_GENERATION_STEP / DV_ON_GENERATION_START 等。 description: 任务描述,会写入 taskDescription。 overwrite: 允许覆盖已有脚本。 confirm: 覆盖时必须为 true。
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_path": "<script_path>"
},
"name": "davinci_script_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| template | No | blank | |
| overwrite | No | ||
| task_name | No | ||
| task_type | No | ||
| description | No | ||
| script_path | Yes |