project_eval
Evaluate Elixir code in your running BEAM application to execute one-off operations or inspect runtime state when no dedicated tool exists.
Instructions
Evaluate Elixir code in the context of the running application. This is the general-purpose escape hatch — use it when no specific tool exists for what you need.
PREFER specific tools over project_eval when they exist:
Need logs? Use get_logs, not project_eval with Logger
Need process info? Use get_process_info/get_process_state, not project_eval with Process.info
Need to recompile? Use recompile or reload_module
Need ETS data? Use list_ets_tables/inspect_ets_table
Need docs? Use get_docs
Need callers? Use xref_callers
Use project_eval for one-off operations that don't have a dedicated tool. The code runs with full access to your application's modules, dependencies, and runtime state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Elixir code to evaluate | |
| timeout | No | Max execution time in milliseconds (default: 30000) |