Save Simulation Scenario
save_simulation_scenarioSave a scenario file in the simulation workspace this credential is connected to, under a name, to run or revise later (list_saved_simulation_scenarios and get_saved_simulation_scenario read it back, delete_saved_simulation_scenario removes it). Takes the file's JSON text, for example the scenario draft_simulation_scenario returned; a draft with problems is saved as it stands and the problems are reported. The file's own name is set to the saved name. A name already saved is refused (CONFLICT) unless replace=true, which saves over it. Saved scenarios outlive reset_simulation_workspace and snapshot restores; a workspace keeps up to 100. Refused on any account that is not a simulation workspace (NOT_A_SIMULATION_WORKSPACE).
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": {
"name": "<name>",
"scenario": "<scenario>"
},
"name": "save_simulation_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name to save it under, unique in the workspace ignoring case (at most 100 characters). | |
| replace | No | Optional, default false. True saves over a scenario already saved under this name. | |
| scenario | Yes | The whole scenario file as JSON text (format "spark.scenario", version 1). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| ready | No | ||
| steps | No | ||
| problems | No | ||
| replaced | No | ||
| scenario | No | ||
| createdAt | No | ||
| updatedAt | No |