inject_rules
Generate a structured rules section for injection into AI prompts, filtered by context with scope labels and priority markers.
Instructions
Generate a formatted rules section for injection into AI prompts. Returns structured text with applicable rules for a given context, including scope labels and priority markers.
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": {
"context": "<context>"
},
"name": "inject_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: structured (markdown), compact (single line), json, anchored (by type) | structured |
| context | Yes | Context/topic to filter relevant rules | |
| max_rules | No |