terse_eval
Evaluate Terse source code with a tree-walking interpreter to get JSON-safe results and captured print output, expanding session aliases before execution.
Instructions
Evaluate Terse source with the tree-walking interpreter. Returns the result value (JSON-safe) and captured print output lines. Session $aliases (see terse_alias_define) are expanded before evaluation.
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": {
"source": "<source>"
},
"name": "terse_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gas | No | Evaluation gas limit (default 100000). | |
| source | Yes | Terse source code to evaluate. |