Copy a function
dosai_duplicate_functionMake a copy of a function inside the same project with all its settings, including saved keys and the safety condition. The copy is named _copy and is created SWITCHED OFF: change what must differ (dosai_update_function), then switch it on (dosai_set_function_active). Requires editor role.
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_id": "<project_id>",
"function_id": "<function_id>"
},
"name": "dosai_duplicate_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | From dosai_list_projects. | |
| function_id | Yes | From dosai_list_functions. |