Execute Programmatic CodeAct Script
icx_execExecutes programmatic Python code inside a sandboxed execution runtime with direct sub-5ms native access to persistent Volumetric Lattice Network memory via the global 'icx' object (icx.search, icx.recall, icx.quote, icx.remember, icx.stats, icx.contradictions). Use this tool for complex multi-hop aggregations, mathematical calculations, contract/financial analytics, and large dataset filtering off-context without bloating the LLM prompt window. Only printed output (print()) crosses into the conversation context. Mutating/read operation. Requires X-License-Key authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The Python script to execute. Standard libraries and the pre-injected 'icx' client are available. Use print() to emit the final bounded result. | |
| space_id | No | Optional memory space partition to execute within (e.g. 'default', 'sec_filings_2026'). Defaults to 'default'. | |
| timeout_ms | No | Optional execution timeout in milliseconds (default: 3000ms, max: 5000ms). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | description=Error message if execution failed | |
| status | Yes | description=Execution status (success | error | timeout) | |
| stderr | No | description=Captured stderr or error trace | |
| stdout | Yes | description=Captured stdout from print() statements | |
| memory_ops_count | Yes | description=Count of memory queries or mutations performed | |
| execution_time_ms | Yes | description=Wall-clock execution time in milliseconds | |
| grounded_fact_count | Yes | description=Count of grounded memory facts accessed |