open_notebook_file
Opens an existing Mathematica notebook file (.nb) in the Mathematica frontend and returns its notebook ID and cell count.
Instructions
Open an existing Mathematica notebook file (.nb) in the Mathematica frontend.
Supports:
Absolute paths: /Users/foo/notebook.nb
Home-relative paths: ~/Documents/notebook.nb
Relative paths (resolved from current directory)
Args: path: Path to the .nb file
Returns: Notebook ID and metadata for use with other notebook commands
Example: open_notebook_file("~/Documents/analysis.nb") -> {id: "NotebookObject[...]", cell_count: 15}
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": {
"path": "<path>"
},
"name": "open_notebook_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |