set_permissions
Set session permissions for OpenOCD debugging: toggle read-only mode (blocks all writes), allow memory writes, flash programming, flash erase, raw commands, and limit flash file size.
Instructions
Adjust safety permissions for this session (only provided args change).
read_only : master switch — blocks all writes/flash/erase/raw allow_memory_write : write_memory / write_variable / write_register / write_peripheral_register allow_flash : flash_write (program) allow_flash_erase : flash_erase_sector (destructive; off by default) allow_raw_command : run_command escape hatch flash_max_bytes : reject flashing files larger than this (0 = no limit)
For persistent settings, put a "permissions" object in openocd-mcp.json. (flash_allowed_paths is set there, not here.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read_only | No | ||
| allow_flash | No | ||
| flash_max_bytes | No | ||
| allow_flash_erase | No | ||
| allow_raw_command | No | ||
| allow_memory_write | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |