pcb_manage_rule_config
Manage DRC rule configurations: retrieve, save, rename, delete, or set default configs for PCB documents. Reopen after changes for pour updates.
Instructions
Manage DRC rule configurations. Actions:
get_current_name: get current active config name
get_by_name: get config by name (configurationName)
get_all: get all configs (includeSystem optional)
save: save config (ruleConfiguration, configurationName; allowOverwrite optional)
rename: rename config (originalName, newName)
delete: delete config (configurationName)
get_default_name: get default config name
set_default: set as default (configurationName) Warning (upstream EDA bug, pro-api-sdk issue #34): saved rule changes read back correctly but do NOT affect pour reflow until the PCB document is closed and reopened. Reopen the document before rebuilding pours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| newName | No | New name (for rename) | |
| document | Yes | Target document UUID — auto-switches to this document before executing. Get UUIDs from list_instances or editor_get_open_tabs. | |
| instance_id | No | Target EasyEDA instance ID (8-char hex). Required when multiple instances are connected. Omit when only one instance is connected (auto-selected). Use list_instances to see connected instances. | |
| originalName | No | Current name (for rename) | |
| includeSystem | No | Include system configs (for get_all) | |
| allowOverwrite | No | Allow overwrite (for save) | |
| configurationName | No | Config name | |
| ruleConfiguration | No | Rule config object (for save) |