mathematica_edit_notebook
Make targeted edits to existing Wolfram notebooks—replace, insert, or append cells, change titles, or switch title language—then save to a new file by default and verify encoding on readback.
Instructions
在既有 .nb 上做定点修改(替换/插入/追加单元、改标题、翻转标题语言),默认另存新文件,写入后回读校验编码,不会产生乱码。
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": {
"notebook_path": "<notebook_path>"
},
"name": "mathematica_edit_notebook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | No | 也可以直接内联修改指令 | |
| timeout | No | ||
| in_place | No | 覆盖源文件,会先备份 .nb.<stamp>.bak | |
| out_path | No | 输出路径;省略则写同目录 -edited.nb | |
| edits_path | No | 修改指令 JSON 路径 | |
| notebook_path | Yes |