method_create
Create a Method object in a Plant Simulation frame and write its SimTalk source, enabling you to define reusable simulation logic within a model.
Instructions
Create a Method object in a frame and write its SimTalk source.
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>",
"source": "<source>"
},
"name": "method_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| source | Yes | ||
| work_dir | No | ||
| frame_path | No | ||
| model_root | No |