codesafe_audit_by_rule
Batch-assemble audit contexts for multiple defects from one rule, summarizing each bug and generating a verdict table for efficient review.
Instructions
Batch-assemble audit contexts for up to max_n defects of one rule.
Resolves the rule's bugIds via codesafe_bug_summary, then builds an audit_bug context for each (capped at max_n and CODESAFE_AUDIT_BATCH_LIMIT). Returns contexts + a summary table skeleton the calling LLM can fill with verdicts. Read-only.
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": {
"task_id": "<task_id>",
"rule_code": "<rule_code>"
},
"name": "codesafe_audit_by_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_n | No | ||
| task_id | Yes | ||
| rule_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||