opendss_compile_script
Compile inline OpenDSS DSS commands and solve a snapshot power flow, returning circuit convergence, element counts, and loss summary.
Instructions
Compile an OpenDSS circuit from inline DSS commands and run power flow.
Pass the complete DSS script as a multi-line string. The server writes it to a temporary file, compiles it, and solves in snapshot mode.
Args: params: CompileScriptInput with the DSS script text.
Returns: Circuit summary with convergence, counts, and losses.
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": {
"params": "<params>"
},
"name": "opendss_compile_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |