check_constraints
Validate code, actions, or files against defined regex and LLM rules to block policy violations before execution.
Instructions
Check code or actions against defined constraints
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": {
"content": "<content>",
"type": "<type>"
},
"name": "check_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of content being checked | |
| content | Yes | Code or content to check | |
| filePath | No | Optional file path for context |