mathematica_compute
Executes Wolfram Language code in a real kernel and returns the final expression’s value and messages, with optional PNG export for graphics. Use it for quick, unverified calculations.
Instructions
在真实 Wolfram 内核里执行一段代码,返回最后一个表达式的值和消息;图形结果可导出 PNG。快速计算,不做 checks、Notebook 和复算,因此永远 verified=false;可交付成果请用 mathematica_run。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mathematica_compute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Wolfram Language 代码,最后一个表达式的值即结果 | |
| out_dir | No | 内部工作目录根路径 | |
| timeout | No | ||
| code_path | No | 代码文件路径,与 code 二选一 | |
| figure_path | No | 结果是图形时复制出 PNG 的目标路径(.png) | |
| working_dir | No | Import 相对路径时的基准目录 | |
| allow_external | No |