run_code
Directly execute Python code within the active CFX session to access session variables and helpers, capturing stdout, stderr, and the return value.
Instructions
Execute Python code against the active PyCFX session namespace. The code runs with pre, solver, post, session, cfxpre, cfxsolver, and cfxpost helpers refreshed from the current CFX sessions. Returns stdout, stderr, and any __return__ value. Prefer cfx_workflow or cfx_model_context for routed actions and read-only queries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python source code submitted for validation, grounding, or execution. |