eval
Evaluates a Pharo Smalltalk expression in a live image and returns the result or error.
Instructions
Evaluate a Pharo Smalltalk expression with PharoSmalltalkInteropServer.
Args: code: The Smalltalk code to evaluate
Returns: dict: API response with success/error and result - Success: {"success": True, "result": any} - result contains the evaluation result - Error: {"success": False, "error": str} - error contains error message
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": "eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The Smalltalk code to evaluate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||