execute_python
Run Python in Hiero's main thread to cover tasks the other tools do not, with hiero pre-imported and JSON-serialisable results, stdout, stderr, and tracebacks returned.
Instructions
Run Python inside Hiero's main thread for anything the other tools do not cover.
`hiero` is pre-imported (hiero.core, hiero.ui). Assign to a variable named `result`
to return a JSON-serialisable value; stdout, stderr and any traceback are returned too.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||