Validate Custom Function
validate_custom_functionCompile a DS2 custom function without saving it and return any errors, optionally validating the code against a specified category.
Instructions
Compile a DS2 custom function without saving it, and return its errors.
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": {
"code": "<code>"
},
"name": "validate_custom_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The DS2 method. | |
| category | No | Optional category (name or ID) to validate against. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||