run_gauss_code
Run GAUSS code and capture printed output. Maintain persistent workspace state for step-by-step analysis, with optional throwaway execution for isolated runs.
Instructions
Run GAUSS code and return what it printed. This is the main tool.
The full GAUSS language is available: matrices, procedures, loops, the library routines, and anything the installation provides.
Symbols created here survive into later calls, so build up an analysis step by step. Use print to show a value; a bare expression prints nothing.
On failure GAUSS reports its own error code and the line of your code it objected to. Note that it compiles before running: an undefined symbol anywhere means nothing ran at all.
keep_state: set false for a throwaway calculation that should leave the workspace untouched.
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_gauss_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| keep_state | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |