run_journal
Compiles and executes arbitrary NX Open C# or VB journals inside NX when no dedicated tool exists, returning Main output, console text, and errors for debugging.
Instructions
ESCAPE HATCH: compile and run arbitrary NX Open code inside NX. Use it when no dedicated tool exists. The code must be a complete journal with a public static/shared Main method (C# class or VB Module). It may return a string from Main; text written to Console is captured too. Compile errors and NX exceptions are returned verbatim so you can fix the code and retry. WARNING: this executes arbitrary code with the user's privileges.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "run_journal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments passed to Main(args). | |
| code | Yes | Complete journal source code. | |
| language | No | Source language. | vb |