get_openocd_command_mode
Determine whether an OpenOCD command must run in configuration or runtime mode so you can issue it in the correct phase and avoid mode-related errors.
Instructions
Ask the running OpenOCD instance whether a command is config or runtime mode.
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_name": "<command_name>"
},
"name": "get_openocd_command_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command_name | Yes |