pcb_manage_rule_config
Manage DRC rule configurations in EasyEDA without risking preference corruption. Retrieve, save, apply, rename, delete, or set default rule sets for PCB design.
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 under a name (ruleConfiguration, configurationName; allowOverwrite optional)
overwrite_current: apply a config to the open board (ruleConfiguration); the document is backed up first
rename: rename config (originalName, newName)
delete: delete config (configurationName)
get_default_name: get default config name
set_default: set as default (configurationName) Only pass a configuration EasyEDA returned: take pcb_get_design_rules().config (the {config, name} result is also accepted) and edit it in place. A hand-built or malformed configuration is rejected before it reaches EasyEDA, because a failed save can corrupt EasyEDA's rule-config preference and hang Design Rules in every project; if that happens the error says so and gives the repair steps. 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.
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": {
"action": "<action>",
"document": "<document>"
},
"name": "pcb_manage_rule_config"
}
}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 EasyEDA returned (for save, overwrite_current) |