upsert_rule
Creates or updates a canonical rule in .agentcanon/rules.yaml with Zod schema validation, ensuring consistent rule definitions across your project.
Instructions
Creates or updates a canonical rule inside .agentcanon/rules.yaml with Zod schema validation.
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": {
"rule": "<rule>"
},
"name": "upsert_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | ||
| projectRoot | No |