proj_get_code
Retrieve source code for a TwinCAT PLC object: declaration/implementation, line numbers, parsed VAR declarations, and sub-items for code inspection.
Instructions
Source of an object ('FB_Valve', 'FB_Valve.Open', 'MAIN'): declaration/implementation with file line numbers, parsed VAR declarations, sub-items.
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>"
},
"name": "proj_get_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| part | No | both | |
| with_line_numbers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||