rails_lens_screen_map
Map screens to source code and vice versa. Use screen_to_source to find files for a URL, source_to_screens to find screens using a file, or full_inventory to auto-generate a screen inventory.
Instructions
画面とソースコードの双方向マッピングを提供する。
3つのモードがある:
screen_to_source: URL またはコントローラ名から、その画面を構成する全ファイルを返す
source_to_screens: ファイルパスから、そのファイルが使われている全画面を返す
full_inventory: 全画面の台帳を自動生成する (ドキュメントがないプロジェクトの全体把握に有効)
画面を変更する前にこのツールで影響範囲を確認すること。 特にパーシャルやヘルパーの変更は複数画面に影響する可能性がある。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "rails_lens_screen_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |