save_graph_template
Save any graph as a reusable template in .otpu or legacy .otp format to apply consistent styling across projects.
Instructions
Save a graph as a reusable Origin template (.otpu/.otp).
Args: graph_name: Graph to save as a template file_path: Output path (Windows or WSL style). The extension is forced to .otpu (or .otp when old_format=True). old_format: Save the legacy .otp format (loadable in Origin 2017 and earlier) instead of the modern .otpu
Returns: Path to the saved template
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": {
"graph_name": "<graph_name>",
"file_path": "<file_path>"
},
"name": "save_graph_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_name | Yes | ||
| file_path | Yes | ||
| old_format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |