julia_eval
Evaluate Julia code in a persistent REPL session. State is preserved across calls, reducing startup costs and keeping variables alive.
Instructions
ALWAYS use this tool to run Julia code. NEVER run julia via command line.
Persistent REPL session with state preserved between calls.
Each env_path gets its own session, started lazily.
Do not type Pkg.activate() explicitly in your code; instead, specify the env_path argument to select the environment.
Args: code: Julia code to evaluate. Use display(...)/println(...) to see output. env_path: Julia project directory path. Omit for a temporary environment. timeout: Seconds (default: 60). Auto-disabled for Pkg operations. julia_cmd: Custom Julia command, should be used rarely, only when explicitly requested. Examples: "julia +1.11", "julia --check-bounds=yes", "/path/to/julia".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| env_path | No | ||
| timeout | No | ||
| julia_cmd | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |