gx3_run_command
Run read-only GX3 CLI commands with explicit arguments for PLC project analysis; mutating and demo commands are rejected, and outputs stay in the configured output directory.
Instructions
Escape hatch: run any MCP-allowed, project-read-only GX3 CLI command with explicit arguments. Project-mutating commands and local demo generation commands are rejected. Local artifacts are confined to GX3_MCP_OUTPUT_DIR. Prefer the typed tools above when one fits; for SVG ladder images use gx3_ladder_export_svg. Both ladder-export-svg and the existing ladder-layout (JSON by default, or --format svg) remain available here.
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": {
"command": "<command>"
},
"name": "gx3_run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| root | No | Optional extracted project root. | |
| command | Yes | MCP-allowed GX3 CLI command name. | |
| timeout_seconds | No |