evaluate
Execute Wolfram Language scripts and retrieve computed results, including output from Print statements and the last line's value.
Instructions
Evaluate a Wolfram Language script by running the wolframscript -print -file <script> command.
Documentation for Wolfram Language: https://context7.com/websites/reference_wolfram_language/llms.txt
IMPORTANT: The tool is returning the result of the last line executed in the script, and any expression printed explicitly with Print[].
Arguments: script (str): Wolfram Language script to execute.
Returns: str: The result of the Wolfram Language script as a string.
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": {
"script": "<script>"
},
"name": "evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |