rails_get_view
Retrieve Rails view templates, partials, and their Stimulus/partial references by controller or exact path to inspect ERB content before editing.
Instructions
Get view templates, partials, and their Stimulus/partial references. Use when: editing ERB views, checking which partials a page renders, or finding Stimulus controller usage. Filter with controller:"posts" for all views, or path:"posts/index.html.erb" for one file's content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Specific view path relative to app/views (e.g. 'posts/index.html.erb'). Returns full content. | |
| detail | No | Detail level. summary: file list with line counts. standard: file list with partials/stimulus refs (default). full: template content. | |
| controller | No | Filter views by controller name (e.g. 'posts', 'comments'). Lists all templates for that controller. |