get_routine
Retrieve a POU's body from a Yaskawa MotionWorks IEC project by specifying its file path and program name, matching Studio 5000 routine access.
Instructions
Get a POU's body (alias for get_pou, for familiarity with studio5000).
Args: path: Project file or directory. program: POU name. routine_name: Ignored; present so the studio5000 calling convention works.
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>",
"program": "<program>"
},
"name": "get_routine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| program | Yes | ||
| routine_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |