get_rule_context
Retrieve a rule's full text, complete history, and linked lessons by RN-* ID to give AI coding agents the context needed for accurate rule application.
Instructions
Return a rule's full text, its complete rule_history, and any lessons linked to it.
Access level: read.
Returns: JSON with rule, history, and linked_lessons.
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_id": "<rule_id>"
},
"name": "get_rule_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | The RN-* id of the rule. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |