rails_get_partial_interface
Analyze a Rails partial's interface to reveal expected local variables, where it is rendered, and methods called on each local—useful when rendering, passing locals, or refactoring dependencies.
Instructions
Analyze a partial's interface: local variables it expects, where it's rendered from, and what methods are called on each local. Use when: rendering a partial, understanding what locals to pass, or refactoring partial dependencies. Specify partial:"shared/status_badge" to see its full interface. Supports both underscore-prefixed and non-prefixed names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Detail level. summary: locals list + usage count. standard: locals + usage examples from codebase (default). full: locals + usage + full partial source. | |
| partial | Yes | Partial path relative to app/views (e.g. 'shared/status_badge', 'users/form'). The leading underscore is optional. |