rails_get_routes
Get the Rails routing table with HTTP verbs, paths, controllers and route names to build links, verify endpoints, or check helpers. Filter by controller and use summary or full detail.
Instructions
Get routing table: HTTP verbs, paths, controller#action, route names. Use when: building links/redirects, checking available endpoints, verifying route helpers exist. Filter with controller:"users", use detail:"summary" for counts or detail:"full" for route names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max routes to return. Default: depends on detail level. | |
| detail | No | Detail level. summary: route counts per controller. standard: paths and actions (default). full: everything including names and constraints. | |
| offset | No | Skip routes for pagination. Default: 0. | |
| app_only | No | Leave out the routes Rails' engines and gems draw on their own (Active Storage, Action Mailbox and its conductor, Turbo Native navigation, Rails' info and mailer-preview pages). Routes the app's route files declare stay, devise_for's and the health check's included. A controller filter searches every route. Default: true. | |
| controller | No | Filter routes by controller name (e.g. 'users', 'api/v1/posts'). |