run_script
Execute Wolfram Language scripts (.wl, .m) and get the result of the last expression with timing info. Definitions persist in the current session.
Instructions
Execute a Wolfram Language script file (.wl, .m) and return the result.
This is equivalent to Get[path] - loads and executes the script in the current kernel session. Any definitions or side effects persist.
Args: path: Path to the .wl or .m script file
Returns: The result of the last expression in the script, plus timing info
Example: run_script("~/scripts/setup.wl") -> {result: "Null", timing_ms: 150}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |