davinci_script_write
Write Groovy automation scripts to DaVinci project paths, auto-appending .dv.groovy and running static checks; set confirm=true to overwrite existing files.
Instructions
直接写入 Groovy 脚本内容(覆盖已有文件需要 confirm=true)。
写入后会立即做静态检查;检查不通过时文件仍会落盘,但 ok=false 并给出问题行号。
Args: script: 目标路径;无 .groovy 后缀会自动补 .dv.groovy。 content: 完整脚本源码(UTF-8,最大 512 KB)。 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": "<script>",
"content": "<content>"
},
"name": "davinci_script_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| confirm | No | ||
| content | Yes |