get_active_rules
Retrieve relevant Cursor context rules for specified files and task description to apply activation logic consistently across AI assistants.
Instructions
Returns rules that apply to a given set of files and/or task description. Call at session start or when switching file context.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_active_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | File paths relative to workspace root | |
| task_description | No | Description of the current task for agent-requested rule matching |