reload_module
Reload a single changed module from its source file into the running BEAM application, allowing immediate testing without a full recompile.
Instructions
Hot-reload a single module from its source file. Fastest possible feedback loop — change one file, reload it, test immediately.
WHEN TO USE: After changing a single .ex file. No full recompile needed. NOT FOR: Multiple file changes (use recompile). Dependencies (use recompile_deps).
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": {
"file": "<file>"
},
"name": "reload_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Full path to the .ex or .exs file to reload (e.g. "/home/luke/workbench/flx/merlinex/lib/my_module.ex") |