Update Custom Function
update_custom_functionModify a custom function's code, description, or category, with new code validated by compilation first. Calling rule sets use the updated code from their next generation.
Instructions
Change a custom function's code, description or category; new code is checked to compile first.
Every rule set that calls the function uses the new code from its next code generation.
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": {
"function_id": "<function_id>"
},
"name": "update_custom_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | New DS2 method. | |
| category | No | Move it to this category (name or ID). | |
| description | No | New description. | |
| function_id | Yes | The function ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||