rails_get_controllers
Retrieve controller actions, before_action filters, strong params, and parent classes to inspect or modify Rails controllers. Drill into a specific action to read its source code with line numbers.
Instructions
Get controller details: actions, before_action filters, strong params, and parent class. Use when: adding/modifying controller actions, checking what filters apply, or reading action source code. Filter with controller:"PostsController", drill into action:"create" for source code with line numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max controllers to return when listing. Default: 50. | |
| action | No | Specific action name (e.g. 'index', 'create'). Requires controller. Returns the action source code and applicable filters. | |
| detail | No | Detail level for controller listing. summary: names + action counts. standard: names + action list (default). full: everything. Ignored when specific controller is given. | |
| offset | No | Skip this many controllers for pagination. Default: 0. | |
| controller | No | Optional: specific controller name (e.g. 'PostsController'). Omit for all controllers. |